summaryrefslogtreecommitdiff
path: root/odoo/addons/test_testing_utilities/menu.xml
diff options
context:
space:
mode:
authorLaurent Smet <las@openerp.com>2018-04-03 15:46:04 +0200
committerxmo-odoo <xmo@odoo.com>2018-04-03 15:46:04 +0200
commit34c7fe2e77e67243e690acb9dd867436f7ca2625 (patch)
tree2f484a253ba7317501efdb8a6538524185706b00 /odoo/addons/test_testing_utilities/menu.xml
parentf5b1d4945c93cf5ab9a61b3ffdbe70eb5a2fca60 (diff)
[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
Diffstat (limited to 'odoo/addons/test_testing_utilities/menu.xml')
-rw-r--r--odoo/addons/test_testing_utilities/menu.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/odoo/addons/test_testing_utilities/menu.xml b/odoo/addons/test_testing_utilities/menu.xml
index 0ca37f58658..fa5263efeca 100644
--- a/odoo/addons/test_testing_utilities/menu.xml
+++ b/odoo/addons/test_testing_utilities/menu.xml
@@ -104,4 +104,25 @@
</form>
</field>
</record>
+
+ <record id="m2o_onchange_view" model="ir.ui.view">
+ <field name="name">Dynamic Onchange Test View</field>
+ <field name="model">test_testing_utilities.onchange_parent</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet>
+ <notebook>
+ <page>
+ <field name="line_ids" widget="one2many_list" context="{'line_ids': line_ids}">
+ <tree editable="bottom">
+ <field name="dummy"/>
+ <field name="flag" invisible="1" readonly="1"/>
+ </tree>
+ </field>
+ </page>
+ </notebook>
+ </sheet>
+ </form>
+ </field>
+ </record>
</odoo>