-
- Downloads
[FIX] web: client report action mounted called twice
Before this commit, the 'mounted' method of the ControlPanel in
the client report action was called twice.
It happened because the client report action 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 Inventory (Stock)
* Open the "burger menu"
* Select "Products" -> "Products"
* Select one product in the list
* Click on the "Forecasted" ("stat button")
* Select one "SO line" (sale order) 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
closes odoo/odoo#65522
Related: odoo/enterprise#16033
Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
Showing
- addons/web/static/src/js/report/client_action.js 0 additions, 9 deletionsaddons/web/static/src/js/report/client_action.js
- addons/web/static/tests/report/client_action_tests.js 111 additions, 0 deletionsaddons/web/static/tests/report/client_action_tests.js
- addons/web/views/webclient_templates.xml 2 additions, 0 deletionsaddons/web/views/webclient_templates.xml
Loading
Please register or sign in to comment