-
- Downloads
[FIX] testing utilities: o2m should not strip readonly fields
In the normal course of saving-action, readonly fields are stripped out when sending data to the server. The SSF would reuse the same code when "saving" O2M lines to the parent record however that is not correct and would lead to misbehaving views as readonly (non-stored) fields used as "transients" (storing data within the extent of a record's edition session) would not behave properly. Fix by overriding the O2M Form's save so that readonly fields are kept and stored in the parent record. Closes #23620
Showing
- odoo/addons/test_testing_utilities/ir.model.access.csv 2 additions, 0 deletionsodoo/addons/test_testing_utilities/ir.model.access.csv
- odoo/addons/test_testing_utilities/menu.xml 21 additions, 0 deletionsodoo/addons/test_testing_utilities/menu.xml
- odoo/addons/test_testing_utilities/models.py 23 additions, 0 deletionsodoo/addons/test_testing_utilities/models.py
- odoo/addons/test_testing_utilities/tests/test_form_impl.py 11 additions, 0 deletionsodoo/addons/test_testing_utilities/tests/test_form_impl.py
- odoo/tests/common.py 19 additions, 1 deletionodoo/tests/common.py
Please register or sign in to comment