summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2020-01-31 15:56:21 +0000
committerAlexandre Kühn <aku@odoo.com>2020-02-18 10:03:01 +0000
commitb1cee5cc668b929f4179d80e597195d2836de816 (patch)
tree4c1f5ef9d31b1c21764fe9face1d991039eab8e7 /addons/web/static/src/js/views/basic/basic_controller.js
parent5676f8d4118be8bfa28d82e98a65d03cec97e957 (diff)
[FIX] mail: no crash on receiving needaction on messaging not ready
Before this commit, when receiving a needaction message while messaging was not ready (i.e. `/mail/init_messaging` not resolved), the web client crashed with the following error message: ``` TypeError: Cannot read property 'incrementMailboxCounter' of undefined ``` This happens due to reception of needaction message incrementing counter of mailbox Inbox, but this mailbox is only added after messaging is ready. This commit fixes the issue by directly adding inbox mailbox on starting the mail service. closes odoo/odoo#45442 X-original-commit: 741acb9f48f2d3542549791a8fd7d6fb318bc862 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions