Daily updates from Odoo
Monday, March 31, 2025
6 changes · master
Resolved issues and error corrections
This change removes unnecessary default permission groups from shared accounting test setup and adds them only where individual tests need them. It helps keep automated tests more accurate and easier to maintain without changing customer-facing behavior.
Original PR description
Followup to https://github.com/odoo/odoo/pull/203271 This PR removes the groups that have little to no effects on the test, and fix the tests that get broken by them. Further groups require more work.
A payroll expense test now consistently uses the same accounting journal as the base setup. This prevents failures when demo data is not installed, improving reliability for development and validation environments.
Original PR description
[FIX] hr_payroll_expense: fix test failure in non-demo mode In `test_no_expense_rule_means_no_linkage` we create a new salary structure to test the case where a missing rule shouldn't link expenses to the payslip. In the copy of the base setup structure we didn't mention a journal, this lead to the use of another journal that worked because demo data would ensure it was properly setup. Without demo data, this test would fail. This commit ensures the journal used in the test is the one from the base setup.
Rental sales now use the same company rules as standard sales when choosing products. This prevents users in subsidiary companies from seeing inconsistent product options and makes rental order entry more reliable.
Original PR description
The `company_id` part of the product_id/product_tmpl_id domain on sale order lines has been removed by odoo/odoo@b0f0fd2ee3dcc3bbb24a123d4a1b38d17d0ce8c9 but not adapted in rental, leaving to an inconsistency between the two apps. This commit (and the community counterpart) refactor the domains of those fields to rely on the standard `check_company` logic, simplifying the logic and avoiding inconstitencies.
A spreadsheet edition error message in the global filter editor is now properly prepared for translation. This helps users working in different languages see clearer, localized guidance when an error occurs.
Original PR description
Task-4680832
The German financial reports now calculate prior-year profit or loss and current-year net income more accurately on the balance sheet. This helps businesses relying on German localization reports see correct carried-forward and annual result figures for fiscal reporting.
Original PR description
Profit and loss from previous year was not well calculated on the balance sheet. With this commit, we change the date scope for the `Net profit/loss for the year` line from `normal` to `from_fiscalyear`. We also change the way we calculate `Profit carried forward/loss carried forward` and `Net income/loss for the year` lines. opw-3663626
The Gantt view now calculates column widths correctly when some columns are folded. This prevents layout issues and helps users read schedules and timelines more reliably.
Original PR description
This commit fixes an issue introduced in https://github.com/odoo/enterprise/commit/4f3682b4edf88f5423bb4111b4f1e0d2fc42e627, where a confusion between the number of hidden columns and the actual number of folded columns led to incorrect width calculations for non-folded columns. This fix resolves the ambiguity and ensures accurate column width.