Daily updates from Odoo
Saturday, May 23, 2026
9 changes · master
New functionality added to Odoo
This update adds a new field for NISS (National Identification Number) directly to the employee search view within the Odoo Enterprise system. This allows for more precise employee identification and reporting, aligning with Belgian payroll requirements. It improves the accuracy of employee data retrieval for HR and accounting processes.
Original PR description
Adds the NISS field directly to the employee search view task:6233643
Enhancements to existing features
This update simplifies Odoo controller code by replacing `request.env` with `self.env`, aligning with existing model practices. This change reduces code complexity and improves maintainability, ensuring a more consistent and efficient system.
Original PR description
*= `payment_sepa_direct_debit, sale_(amazon, lazada, shopee), website_sale_(*)` Purpose of this commit: - Since https://github.com/odoo/odoo/commit/9ce68df56cf01ad166de4d21d1670fbd9631940d, `self.env` can also be used in controllers as a replacement for `request.env`. This significantly reduces the need to import and rely on request in controller code. - Using request has already become bad practice in models. With this change, we aim to reduce its usage in controllers as well, aligning controller code more closely with model practices. - Therefore, within our scope, all occurrences of `request.env` are replaced with `self.env` wherver possible. See also: - https://github.com/odoo/odoo/pull/262467 task-6172360
This update enhances the Odoo Enterprise phone system by adding tooltips to long names displayed in call summaries and contact information. This improves usability by providing more context and detail for users, particularly when dealing with lengthy names or numbers.
Original PR description
Task-6179948
Resolved issues and error corrections
This update allows Invoicing Administrators to delete or edit reconciled lines in the accounting system, resolving a previous restriction. The change ensures consistent access control based on the line's review status, aligning with existing accounting rules and improving usability for administrators. This update was driven by a bug fix related to privilege checks.
Original PR description
Deleting or editing a reconciled line raised "Validated entries can only be changed by your accountant." for Invoicing Administrators because the check only tested `group_account_user`, which is not granted by the Invoicing privilege chain. Delegate to `AccountMove._check_review_state_access()` to apply the same rules as `account.move`: - `'supervised'` → requires `group_account_manager` - `'reviewed'` → requires `group_account_user` or `group_account_manager` - `'todo'` / `'anomaly'` → no restriction opw-6128792 Forward-Port-Of: odoo/enterprise#117795 Forward-Port-Of: odoo/enterprise#114833
This update resolves an issue where users would encounter an error when attempting to sign in to planning slots without a defined end date. The fix ensures that the system handles empty end dates gracefully, preventing the error and allowing users to successfully schedule tasks. This improves the overall reliability of the planning feature.
Original PR description
Currently, an error occurs when user tries to signin on a planning slot which doesnt have an end date selected.
Steps to replicate:
- Install `planning_field_service` and open Planning.
- Click New > Add a Customer > Change status to `Scheduled`.
- Remove end datetime (right one) > Click `Sign In`.
Error:
```
File '/home/odoo/odoo19/enterprise/planning_field_service/models/planning_slot.py', line 264, in action_sign_in
if now > self.end_datetime.astimezone(ZoneInfo('UTC')):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'astimezone'
```
Cause:
- As the user removed value from end datetime, `self.end_datetime` is False so we get this error when trying to access `self.end_datetime.astimezone()`.
Solution:
- Added a conditonal check for `self.end_datetime` before accessing `self.end_datetime.astimezone()`.
sentry-7480608465
Forward-Port-Of: odoo/enterprise#117425This update enhances the working files reporting feature by adding a confirmation step when deleting files, preventing accidental data loss. It also ensures all working files open in the standard cycle view and displays embedded actions correctly. These changes improve the user experience and data integrity for account reports.
Original PR description
contains: [FIX] account_reports: Working files delete button: - hide it for non-accountant - add confirmation dialog [FIX] account_reports: Working file should always open in cycle view [FIX] account_reports: Always show embedded actions in Working files task-5880319 Forward-Port-Of: odoo/enterprise#117831 Forward-Port-Of: odoo/enterprise#115596
This update resolves an issue preventing normal users from canceling approval requests they created. The fix utilizes 'sudo' to grant the correct permissions, allowing users to successfully cancel their own approvals and streamlining the workflow.
Original PR description
Issue: - A user who created an approval request could cancel it. But a rights error appeared during the cancellation. Steps to Reproduce: - Create an approval being a normal user. - Try to cancel the approval. - A ValidationError is raised eventhough the approvals can be cancelled by creator of it. Fix: - Changed the cancel action to use the sudo for the user who created the task and can cancel it Impact: - Users can cancel their own approval requests without errors. Task: 6123104 Forward-Port-Of: odoo/enterprise#114189
This update resolves an issue where the generic tax report wouldn't display an error message when dealing with negative net values. The fix ensures that the report accurately checks for tax discrepancies, regardless of whether the net amount is positive or negative, improving report reliability.
Original PR description
**Issue:** In the generic tax report, a check is performed on the report lines to ensure that the declared tax amount is consistent with the expected amount. If the difference between the declared tax amount and the expected one is higher than 0.1% of the declared net amount, then a error message is displayed. If the net amount is negative, the error message is never displayed because the computed percentage of the tax difference is negative and therefore lower than 0.1% (i.e. 0.001). opw-6014350 Forward-Port-Of: odoo/enterprise#117990
This update fixes a potential error message displayed when spreadsheets are unavailable, preventing disruptions to user workflows. The change handles server errors within the system, eliminating the need for complex template modifications and streamlining the process. This improves stability and user experience.
Original PR description
The fix suggested in #81276 did not account for other spreadsheet models than a document as it required some modification in the component template. The same logic should then have been forwarded to other models (quality.check for instance] but that process is error prone. This revision changes the approach by handling the server error inside the abstract action so that no template modification is required. task-6208222 Forward-Port-Of: odoo/enterprise#117934 Forward-Port-Of: odoo/enterprise#117221