Daily updates from Odoo
Thursday, May 21, 2026
3 changes
1 change
Code cleanup and technical improvements
This update streamlines the process of checking user access rights within review workflows. By creating helper functions, the system now more efficiently determines if a user has the necessary permissions to modify records based on their review state (supervised, reviewed, etc.), improving reliability and reducing code duplication.
Original PR description
Introduce two small helpers on `AccountMove`: * `_get_review_state_access_groups()` – returns the `(is_user_able_to_review, is_user_able_to_supervise)` booleans so the two `has_group` calls are not repeated across methods. * `_check_review_state_access(review_state)` – raises an `AccessError` with a state-specific message when the current user lacks the required role to modify a record in the given `review_state`: - `'supervised'` → requires `account.group_account_manager` - `'reviewed'` / `'no_review'` /falsy → requires `account.group_account_user` - `'todo'`, `'anomaly'` → unrestricted opw-6128792 Forward-Port-Of: odoo/odoo#262531
2 changes
Code cleanup and technical improvements
This update simplifies the management of point-of-sale (POS) functionality by separating it from a previous utility. Additionally, the team addressed critical issues related to the 18.0 certification process for the EU IoT scale feature, ensuring compliance. This improves code organization and stability.
Original PR description
In order to simplify reuse of `IotScale` utility, we extract pos logic from it (move it to `ScaleScreen`). We also fix some `l10n_eu_iot_scale_cert` issues by updating the previously frozen code (for 18.0 certification).
This update streamlines how changes to Point of Sale orders are tracked and managed. Previously, changes were handled internally, but now the system calculates and displays order changes directly on the user's device (client-side). This improves responsiveness and reduces server load.
Original PR description
This commit replaces the previous order change tracking mechanism based on `last_order_preparation_change` with two new models: `pos.prep.order` and `pos.prep.line`. All the order changes will be computed on the client side. Task-5030559