Thursday, February 8, 2024
1 change · 17.0
Resolved issues and error corrections
The payroll module's dashboard test was failing when the sign module wasn't installed, even though payroll doesn't require sign. This fix adds a check to only create sign-related test data when the sign module is actually available, ensuring tests run reliably regardless of which modules are installed.
Original PR description
Before this commit, the `test_dashboard_ui` test in payroll was relying on sign. However, `hr_payroll` does not depend on sign, which would lead to the test breaking when that module is not installed. This commit adds a check to see if sign is installed before creating the additional data related to it. Forward-Port-Of: odoo/enterprise#56051