Monday, June 23, 2025
5 changes · saas-18.2
Resolved issues and error corrections
This fixes cases where records could fail to save when property field definitions changed and the operation ran under a limited-access user. The system now applies default property values with the necessary permissions, preventing access errors during internal data flushing.
Original PR description
If the definition of the properties changes, the Properties fields is computed to add the default values from its definition. This is done in the `_compute` method when flushing data (because the field is stored). We need to run that method in sudo, because the default environment may have a user that doesn't have permissions to read the parent record or update the current record.
Example with `env` with public user which is the default_env for the transaction.
```
lead = env['crm.lead'].sudo().create({'name': 'test'})
lead.team_id = 2
```
Current behavior before PR:
Access error in:
```
File "/opt/odoo/odoo/orm/fields_properties.py", line 294, in _compute
{self.name: record[self.name], self.definition_record: record[self.definition_record]},
~~~~~~^^^^^^^^^^^
```
Desired behavior after PR is merged:
`lead` flushed correctly.
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis update fixes a timing issue that could cause automated Point of Sale checks to fail after a page refresh. It helps keep validation runs stable and reduces false failures during release testing.
Original PR description
Call to indexedDB is now debounced to avoid multiple calls, but when a tour refresh the page, the previous call is still pending and causes a failure in the test since the data are not in the database yet. runbot error: 227554
Customers who add the last item from their wishlist to the cart are redirected to the cart again. This restores the expected shopping flow and avoids leaving shoppers on an empty wishlist page.
Original PR description
Versions -------- - saas-18.2 - saas-18.3 Fix on master in FW. Steps ----- 1. Add 1 item to your wishlist; 2. go to wishlist; 3. add item to cart. Issue ----- You don't get redirected to the cart. Cause ----- Commit c0f411cc7cf17 fixed an issue where products were removed from the wishlist before they were added to the cart via the product configurator by not passing a deferred redirect to `_removeWish`. An unintended side-effect is that the user no longer gets redirected when the wishlist is empty. Solution -------- After calling `_removeWish`, check if the wishlist is empty, and if so, call `_redirectNoWish` to restore previous behavior. runbot-227042
This fixes a recurring automated test failure in the Swedish SIE4 export caused by account setup differences when extra modules are installed. The export validation is now consistent across database configurations, reducing false failures in release checks.
Original PR description
From saas-18.2, some account changes on Swedish CoA when other module(s) are installed have been breaking the test for the export (that exports all the available account). This commit adapts the expected test file to ignore this changes and ensures the result always stays the same, no matter what modules are installed on the database. This fixes the currently recurring runbot errors from saas-18.2 and up: [runbot-159821](https://runbot.odoo.com/odoo/error/159821)
The Attendance Gantt view now shows its helpful empty-state guidance when there are no attendance records, even if a default employee row is present. This makes fresh databases clearer for users by explaining what to do instead of showing an empty-looking schedule.
Original PR description
Issue / current behavior: In the gantt view of hr.attendance, the no content help screen will only show if there's no rows. In the case of a fresh database with only the Administrator employee, the help will not appear because the admin row exists by default. Required behavior: The gantt view should show the no content help screen if recordIds inside the single row is empty, meaning that there's no hr.attendance records. task-4874129