summaryrefslogtreecommitdiff
path: root/odoo/addons/test_testing_utilities/menu.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-09-24 13:22:25 +0000
committerfw-bot <otis@odoo.com>2019-09-25 16:37:19 +0000
commit77099c54b602eb1a71c2a176eeebcceefaf7aec6 (patch)
tree285eed8e714dab9e5dae740f74b24eba656b7742 /odoo/addons/test_testing_utilities/menu.xml
parent98b7129e20979a4dbbeb72ea1109112744f813d5 (diff)
[FIX] core: o2m modifiers in the SSF
Because the sub-record values would not necessarily get fetched ever (whether default or stored), the computation of modifiers might blow up if it relied on one of the un-fetched un-specified fields. One such situation is trying to create a partner with child partners if base_address_city is installed: the module adds a readonly attr predicated upon the parent_id, without explicitly providing such the field would be missing from the O2M record's values. Closes #37176 closes odoo/odoo#37452 X-original-commit: 184d1b69eac2b78c72228c81c5c6cf8cc4a56eb4 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'odoo/addons/test_testing_utilities/menu.xml')
-rw-r--r--odoo/addons/test_testing_utilities/menu.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/odoo/addons/test_testing_utilities/menu.xml b/odoo/addons/test_testing_utilities/menu.xml
index 60789cb490c..52bdeba2399 100644
--- a/odoo/addons/test_testing_utilities/menu.xml
+++ b/odoo/addons/test_testing_utilities/menu.xml
@@ -164,4 +164,19 @@
</form>
</field>
</record>
+
+ <record id="o2m_modifier" model="ir.ui.view">
+ <field name="name">Modifier check</field>
+ <field name="model">test_testing_utilities.parent</field>
+ <field name="inherit_id" ref="o2m_parent"/>
+ <field name="mode">primary</field>
+ <field name="arch" type="xml">
+ <field name="subs" position="inside">
+ <form>
+ <field name="value" attrs="{'readonly': [('v', '!=', False)]}"/>
+ <field name="v"/>
+ </form>
+ </field>
+ </field>
+ </record>
</odoo>