Monday, April 28, 2025
9 changes · saas-18.3
Resolved issues and error corrections
This fix updates internal tests for India sales tax behavior so they can create the sales orders needed for validation. It helps keep automated checks reliable without changing customer-facing functionality.
Original PR description
`test_l10n_in_sale_fiscal_position` need to create sale orders to test the things they're interested in. The default user is unable to do that, however since the SO creation does not seem to be the "meat" of the tests we can probably just sudo the SO creation in place rather than add groups. https://runbot.odoo.com/odoo/error/163644
This fix updates Product and Sales tests so they explicitly enable pricelists before checking related behavior. It keeps automated checks aligned with the newer rule that pricelists are only calculated when enabled, reducing false test failures without changing customer-facing functionality.
Original PR description
After e1145d56162a5b88fe56b78abf70f7bd104ead00 we do not compute pricelists unless they are enabled which caused some tests to fail as they expected pricelists to be activated.
This fix prevents hardware driver requests from failing when no request headers are provided. It helps keep connected hardware communication stable by ensuring the system can always add its required identification information.
Original PR description
Previously, if `headers` was explicitly passed to `None`, we couldn't assign it the custom User Agent. Now, we ensure to set it to an empty dictionary before assigning it.
This change updates internal Spanish reporting tests so they no longer rely on demo data, which is not allowed in this context. It helps keep automated checks compliant and reliable without changing day-to-day user functionality.
Original PR description
This is illegal. https://runbot.odoo.com/odoo/error/161658
This change makes the Indian payroll test setup create its own department data instead of depending on optional sample records. It helps keep automated checks reliable in standard test configurations without changing payroll features for users.
Original PR description
`hr.dep_rd` is demo data, it's not available anymore during tests in the default configuration. So replace it by creating a department on the fly. And remove the resolution of `employee_al` which is also demo data *and* seems unused. While at it, nuke a bunch of instance variables which don't seem used outside of `setUp`. https://runbot.odoo.com/odoo/error/161648
This update fixes an internal test setup so Amazon marketplace-related tests run with the required sales administrator access. It helps keep automated validation reliable for Amazon sales integrations without changing day-to-day user behavior.
Original PR description
Interaction with the amazon marketplace models requires sales admin access. Furthermore, these accesses are also necessary during the `l10n_es_sale_amazon` tests (which use this setup), so adding then removing the group for the setup or locally using `sudo` doesn't seem like a great option. https://runbot.odoo.com/odoo/error/163666
The VAT return draft-check now focuses only on customer invoices and vendor bills. This prevents unrelated miscellaneous journal entries from blocking VAT return preparation, reducing false warnings for accounting teams.
Original PR description
In the VAT report return, we check that there are no draft moves in the period. However, we only want customer invoices and bills, MISC entries should not be included in the check. task-4627315
Spreadsheet pivot tables now generate DATE formulas without extra spaces before the day and month values. This prevents formatting issues and makes generated spreadsheet formulas cleaner and more reliable for users.
Original PR description
Removed extra spaces in front of the day and month in DATE function. Task: 4725023
Appointment pages with no available staff or resources now show the unavailable-slot message only once. This avoids a confusing duplicate message for visitors trying to book an appointment.
Original PR description
Reproduce: Check the front page of an appointment type with no resources or staff users. This commit avoids duplicating the ‘No slot’ message on the front page of appointment types for which there is no slot available. Task-4750234