Before the websocket were introduced, the last notification id was persisted in the local storage in order to use it even after a page reload. The last notification id is now stored on the `SharedWorker` which means this information is lost if the last opened tab is reloaded. This commit fixes this issue by storing this information by the mean of the localStorage. Since the localStorage is not accessible from the worker global scope, the bus service will store this information and relay it to the worker when starting. The worker will now wait to receive the last notification id before subscribing. closes odoo/odoo#99621 Related: odoo/enterprise#31124 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
9 lines
191 B
Python
9 lines
191 B
Python
# -*- coding: utf-8 -*-
|
|
from . import bus
|
|
from . import bus_presence
|
|
from . import ir_http
|
|
from . import ir_model
|
|
from . import ir_websocket
|
|
from . import res_users
|
|
from . import res_partner
|