Wednesday, July 24, 2024
5 changes · saas-17.4
Resolved issues and error corrections
This fixes an issue that could prevent community Point of Sale product forms from loading because they referenced a scanner field that only exists in the enterprise edition. The change helps keep the community edition stable and avoids blocking users from accessing product details in Point of Sale.
Original PR description
Runbot error: 71442 The error "Missing widget: productScanner for field of type char" is raised in community builds. This is linked to the fact that the widget is called in community but declared in enterprise. Enterprise PR: odoo/enterprise#66721 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes how purchase and purchase agreement totals are calculated in the company currency. It improves reliability of displayed totals by using the right dependencies and removing redundant currency conversion logic.
Original PR description
Followup to 202af7c12a768005df3bd97f595ead0a4c4c02b9 - Some depend values were wrong - New fields should have been separate computes for cleaner code + avoiding trying to change their values when their field dependencies don't have any changes - Also, remove the obsolete repeat currency conversions from bugfix 5618236ce217406931885a80b3f764eb25369d66 since the newer `price_total_cc` makes it unnecessary, but didn't remove the logic at the time of adding the new field. Followup to task: 3151579 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The sales tests now make sure discount functionality is enabled before checking discount behavior. This prevents false test failures and helps keep sales-related quality checks reliable after a recent validation change.
Original PR description
After commit 73b80be7649746f739fbd924c94a0410d6660659, a check was added if discount was enabled before applying it some tests were failing, because the setting was not enabled So now we make sure the setting is enabled before running the tests --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix prevents community builds from failing when product barcode lookup views reference an enterprise-only scanner widget. The scanner widget usage is now kept in the enterprise override, improving build stability without changing business workflows.
Original PR description
Runbot error: 71442 The error "Missing widget: productScanner for field of type char" is raised in community builds. This is linked to the fact that the widget is called in community but declared in enterprise. We thus move its usage to the enterprise view override. Community PR: odoo/odoo#173283
A project time-off test now sets the expected timezone before running. This makes automated checks consistent across environments and helps prevent false failures unrelated to product behavior.
Original PR description
This PR fixes a test that was relying on the user being in a certain timezone. This timezone is now set before the test. Task-4038158