Daily updates from Odoo
Friday, January 19, 2024
2 changes · master
Code cleanup and technical improvements
This update reorganizes how several Odoo apps load messaging-related information by combining multiple server requests into one. It should make startup behavior more consistent and easier to maintain, with little direct change for everyday users.
Original PR description
\* = account_accountant, documents, voip, web_studio,
website_helpdesk_livechat
In particular, init_messaging and failures are now done in a single RPC.
Time control tests have to be adapted to take into account the extra delay that is introduced before fetching data.
Discuss action is made to render even if messaging is not initialized in order to resolve the action promise, to know when to advance time.
The new async step helper is used to guarantee proper order between RPC.
Part of task-3605717
https://github.com/odoo/odoo/pull/149860Point of Sale display modules now use a shared update mechanism to make live notifications more consistent and easier to distinguish. This reduces duplicate infrastructure and fixes an issue affecting real-time communication between POS screens.
Original PR description
pos*: pos_order_tracking_display,pos_preparation_display,pos_restaurant_appointment
- create the `pos.bus.mixin` class;
- it insures that modules that inherit this class have an
`access_token`; ( similar to `portal.mixin` )
- implements the `_notify` method that uses the `access_token`
and the notification name concatenated as a channel;
--> as such, listeners can differentiate between senders.
- adapt `pos.config`, `pos.session`, `pos.preparation.display` to
inherit from `pos.bus.mixin`;
- replace all bus usage in the frontend with `bus.subscribe`;
( the PosBus service has been removed )
- this has the benefit of solving the bug from task: 3557587
Task 3508655
https://github.com/odoo/odoo/pull/136621