summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-11-12 12:37:09 +0000
committerqsm-odoo <qsm@odoo.com>2018-11-12 12:53:44 +0000
commit01706392620e909b8deb9fdb1ea7793516bb8e16 (patch)
tree8032a7eec9ffc541ff706f73d347cffccacb6a26 /addons/web/static/src/js/views/basic/basic_controller.js
parent253676da5482872b8fce30a5e2223af244923bda (diff)
[FIX] website: restore customize menu loading
When opening the customize menu as soon as the page became visible, an RPC crashed and the toggable options did not appear anymore. This happened: 1) DOM is ready. 2) The user click on the menu. 3) At the same time, the customize menu is initialized (`attachTo`), its event handlers are bound and the async `willStart` method is called. 4) The event handler for the user click is called... and crashes as requires a variable which would have been set in the `start` method. The bug did not appear in previous versions as the handler was not using the standard system and bound the event handler "by hand" in the `start` method. Maybe `attachTo` should not bind event handlers before the `willStart` method is completed; this would be a subject for the master branch. This commit solves the problem by setting the required variable in the `willStart` method instead of the `start` method. closes odoo/odoo#28578
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions