Friday, March 20, 2026
2 changes
Code cleanup and technical improvements
This update clarifies the names of key fields related to reinvoicing policies, enhancing clarity and consistency. Additionally, the model and view files for the timesheet functionality have been renamed to align with standard Odoo naming conventions, improving code organization and developer readability. This change supports ongoing improvements to reporting.
Original PR description
This PR renames several fields to better reflect their purpose and follow naming guidelines. Fields: * `expense_policy` → `reinvoice_policy` * `visible_expense_policy` → `visible_reinvoice_policy` Files: * `models/hr_timesheet.py` → `models/account_analytic_line.py` * `views/hr_timesheet_views.xml` → `views/account_analytic_line_views.xml` `expense_policy` and `visible_expense_policy` are renamed because these fields are no longer specific to expenses and now represent the generic reinvoicing behavior. `hr_timesheet` model and view files are renamed to `account_analytic_line` since We generally avoid functional naming for model or view files, and having the code for the `account.analytic.line` model inside a file named `hr_timesheet` does not add much clarity to devs. follow up of task-5490517 See Also: - https://github.com/odoo/odoo/pull/252144 - https://github.com/odoo/upgrade/pull/9609
This update streamlines access control for spreadsheet cells within Odoo Enterprise. The changes consolidate existing permission rules, eliminating redundant checks and improving the overall efficiency of the system. This ensures consistent and reliable access to spreadsheet data.
Original PR description
Use access rules defined and don't create additional permission checks.