Monday, June 12, 2023
1 change · master
Resolved issues and error corrections
When a form field is made read-only in Studio, Odoo now also ensures its value is still saved. This restores earlier behavior and helps prevent data from being lost or ignored after Studio customizations.
Original PR description
In form view, when "readonly" is set to true on a field, it should also set the "force_save" attribute to true. This commit adds this behaviour that was present in legacy and adds a test. Task: [3284910](https://www.odoo.com/mail/view?model=project.task&res_id=3284910&access_token=1e9b0d2e-0712-472c-8db8-f86e7f6287e9) Related to https://github.com/odoo/enterprise/pull/41783 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr