Daily updates from Odoo
Wednesday, November 20, 2024
3 changes · master
Resolved issues and error corrections
This fix adds missing test dependencies for Helpdesk Timesheet and Sales Timesheet Enterprise after related model changes. It helps keep automated checks stable, reducing the risk of disruptions in future updates.
Original PR description
[*] sale_timesheet_enterprise Purpose of this commit: Following the changes in PR https://github.com/odoo/odoo/pull/187029 the removal of certain model definitions caused test cases in the specified modules to fail. This commit resolves the issue by adding the necessary model dependencies. Community PR: https://github.com/odoo/odoo/pull/187029 Part of task-3818666
The payroll sales commission tests now calculate expected commissions from the sales order total instead of fixed product prices. This prevents unrelated price list settings from causing false test failures, improving reliability for payroll commission validation.
Original PR description
If a pricelist matches the test product, the commission will be affected. This is one more repeat of odoo/odoo@abe8e38ccc18cfba77317d3fdaf4a066b5f69b79: it's possible for a module to set up a universally applicable pricelist (like `pos_pricer` which sets a 20% discount on everything). In the presence of such a module, tests with hard-coded "output" prices will fail. A common workaround is to disable all pricelists when creating the test, but in this case it seems reasonably easy (and correct) to use the SO's total amount as computation basis.
Enabling UPS delivery in Inventory settings now installs the current UPS integration instead of the legacy one. This prevents users from being placed on the outdated connector and ensures the expected shipping setup is activated.
Original PR description
Steps to reproduce the bug:
- Go to the inventory settings:
- Enable the UPS delivery
Problem:
The Legacy UPS is installed instead of the new one
opw-4341776