odoo/odoo#223822

Created by fw-bot
Merged at 9ea48019a95ed38eaef8b2894ae09090d0369729

Statuses:

label
odoo-dev:master-18.0-opw-4917471-huvw-457875-fw
head
6252b0028978e2c86a7a863b35af44dcd806cb20
merged
8 months ago by Bugfix, Hubert Van De Walle
odoo/odoo
18.0 #222595
saas-18.2 #222815
saas-18.3 #222849
saas-18.4 #223797
19.0
saas-19.1
saas-19.2
saas-19.3
master #223822

[FIX] account: don't remove readonly for every field

Steps to reproduce

=> The form is marked as dirty and the checkbox is toggled

Cause of the issue

291518a7e7708690d183b9d1ca53c84d0c56ad90

If the state is not in ["cancel", "done", "posted"], the fields are never in readonly

Solution

Only do this for the "name" and "product_id" fields

opw-4917471

Forward-Port-Of: #222849
Forward-Port-Of: #222595