Wednesday, July 26, 2023
2 changes · master
Resolved issues and error corrections
This fixes an issue where edits made in a pop-up form for a read-only related list could remain even after the user chose to discard changes. Users can now rely on discard actions to fully undo those edits and restore the original record state.
Original PR description
Before this commit, discard management was incorrect when you had a non-editable x2m. This could result in changes not being completely undone.
How to reproduce:
- Go to a form view with an uneditable x2m
- Click on a record in the x2m
- Edit the record in the form view dialog
- Click on save
- Reopen the same record
- Click on discard
- Click on the discard in the main form view
- Reopen the same record
Before this commit:
The change applied is still present
After this commit:
The applied change is no longer there. The original state has been restored.
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prFixes an error that could occur when creating a new user. This helps administrators add users reliably without encountering a technical traceback.
Original PR description
The combination of the new basic model and this change dc4dcead6ed5e16eebdf7a9f79afea31b24ec33f made it so that creating a new user would fail with a traceback. This commit fixes the issue by making sure that the company_id that is used withing the initial onchange is a integer, and not a new-id. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr