diff options
| author | Romeo Fragomeli <rfr@odoo.com> | 2021-02-04 09:53:26 +0000 |
|---|---|---|
| committer | Romeo Fragomeli <rfr@odoo.com> | 2021-02-18 10:09:22 +0000 |
| commit | bbcd8ce097e62bd1d9ba3a61608324a80a111c24 (patch) | |
| tree | 3f75c094e84c8794b33fc655c66d24fd40804a06 /addons/web/static/src/js | |
| parent | 0f6ad2a690f76d6bbbe92106fc8360f99eaac6c2 (diff) | |
[FIX] stock: traceability report mounted called twice
Before this commit, the 'mounted' method of the ControlPanel in
the traceability report was called twice.
It happened because the traceability report updated the ControlPanel
before being actually mounted, so mounted was called once when the
traceability report was mounted, and once when the update was applied.
Ideally, this should not be an issue (this isn't an issue with owl).
However, in Odoo, we mix layers of Owl Components and legacy
widgets. In these situations, the above scenario isn't properly
handled (and can't be).
As a consequence, in mobile (enterprise), it crashed because an
handler bound in mounted (thus twice) was only unbound once.
This commit avoids the issue as the update was actually useless.
Steps to reproduces (Mobile):
* Go to Manufacturing (MRP)
* Open the "burger menu"
* Select "Products" -> "Lots/Serial Numbers"
* Select one product in the list (unfold group first)
* Click on the "Traceability" ("stat button")
* Select one line to go to the form view
* Go back to the previous view using breadcrumb
* Optional: Go to another app if the screen can't scroll (e.g. go to Sales)
* Scroll the view => Bug
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
