Monday, March 31, 2025
4 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.
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 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.