Daily updates from Odoo
Tuesday, May 19, 2026
4 changes
1 change
Code cleanup and technical improvements
This update streamlines the process of checking user permissions for reviewing and supervising financial records. By creating helper functions, the system now more efficiently determines if a user has the necessary access rights based on the record's 'review_state', ensuring accurate and consistent access control across the system. This improves data security and user experience.
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 a `ValidationError` 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'` / falsy → requires `account.group_account_user` - `'todo'`, `'anomaly'` → unrestricted opw-6128792 Forward-Port-Of: odoo/odoo#262531
1 change
Code cleanup and technical improvements
This update streamlines the process of checking user permissions for reviewing and supervising financial records. By creating helper functions, the system now more efficiently verifies if a user has the necessary roles to modify records based on their 'review_state', ensuring accurate access control and preventing potential errors.
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 a `ValidationError` 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'` / falsy → requires `account.group_account_user` - `'todo'`, `'anomaly'` → unrestricted opw-6128792
2 changes
Code cleanup and technical improvements
This update clarifies the installation process for payroll by moving related menu items directly within the core hr_payroll module. Previously, installing a related app would create a misleading impression of payroll being active. This change ensures a cleaner and more accurate user experience.
Original PR description
If you take time off as a one app free, it will install hr_work_entry which contains the root payroll menu item, giving people the impression that payroll was installed. -> Moving those menu items to hr_payroll. Task: 6072554
This update clarifies the purpose of a stock field used in forecasting, renaming it from 'location_final_id' to 'forecasted_location_id'. This change simplifies the system and ensures accurate multi-step push route calculations without affecting core inventory operations.
Original PR description
The `location_final_id` field is renamed to `forecasted_location_id` to prevent user confusion. This field is only utilized for forecasting multi-step push routes and does not impact actual inventory operations.