Thursday, January 11, 2024
2 changes · master
Resolved issues and error corrections
This fix corrects how payroll holiday dashboard warnings are calculated, preventing an error caused by counting records in the wrong way. Business users should see more reliable dashboard warnings for payroll-related holidays without any change to their workflow.
Original PR description
We apply the len operator on an integer result, which is not correct, we fix that by calling search instead of search_count
The automated report generation test was updated to handle Luxembourg payroll/accounting setups where the related Luxembourg reports module is not installed. This prevents false test failures and helps keep internal validation stable without changing business functionality.
Original PR description
With https://github.com/odoo/odoo/commit/11f73899ef60d56f9e4258d8d9732c8954b288fb, when installing l10n_lu_hr_payroll_account, l10n_lu_reports is not installed (as there is no luxemburgese company). The test test_generate_all_export_files then fails because it expects l10n_lu_reports to be installed if l10n_lu is, and so, some fields don't exist. => To solve, we make the test more robust by ensuring that the fields put on the company do actually exist on the model. Linked to runbot errors 55130, 55131