Skip to content
Snippets Groups Projects
Commit ed992ed0 authored by tsm-odoo's avatar tsm-odoo
Browse files

[FIX] bus: getItemFromStorage error when no dbuuid is provided


The `bus_service` uses the `dbuuid` key from session in order to
know when to drop the last notification id from the local storage:
when the db changes.

The issue is that public pages don't fetch the session, this results
in undefined being added into the local storage. The multi tab service
speculates on the fact that the value stored will always be json
parsable.

This commit fixes the issue by taking into account the fact that session
dbuuid can be undefined. Moreover, the multi tab service has been
updated to return the raw value if it is not parsable.

closes odoo/odoo#100652

Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
parent f0e758b0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment