Daily updates from Odoo
Wednesday, March 26, 2025
3 changes · master
Resolved issues and error corrections
This fixes an intermittent issue in an automated test for buying rental products online. The change helps ensure date changes are properly recognized during testing, reducing false warnings in build checks without affecting customer-facing behavior.
This fixes when the close option appears for subscriptions by removing an impossible date condition. Businesses get more reliable subscription closing behavior and avoid incorrect decisions in the customer portal.
Original PR description
Previously, display_close had a contradiction where order_sudo.end_date was required to be both None and greater than order_sudo.next_invoice_date, which is not possible. This fix ensures that display_close is correctly set when either: - order_sudo.end_date is not defined, OR - order_sudo.end_date is after order_sudo.next_invoice_date. This prevents incorrect evaluations and potential issues in closing logic.
The test suite now explicitly sets required user groups that were previously available by default through demo data. This helps ensure Odoo can be tested reliably when installed without demo data, supporting the planned default installation behavior.
Original PR description
Since https://github.com/odoo/odoo/pull/198078, default groups have been moved from regular data to demo data. Due to many test's reliance on those groups, a big chunk of tests stopped working when ran without demo data; as we want to change the behaviour of odoo to install without demo data by default, we require the test suite to run without it as well. This PR adds those missing groups explicitly to restore the behaviour prior to the PR mentioned above for tests inheriting from odoo/addons/base/tests/common.py:BaseCommon, other instances of missing groups have also been adapted. Those changes are made with the hope that individual teams will go through the necessity of such groups and remove them/adapt the code as appropriate.