summaryrefslogtreecommitdiff
path: root/odoo/addons/test_testing_utilities/menu.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-02-21 10:20:49 +0000
committerXavier Morel <xmo@odoo.com>2019-02-26 13:18:57 +0000
commite36ad5b0b01aca802e835b82e1fbb79a0d40e659 (patch)
treeed539cff24b2c283a73cbbcd2c0c2451432ebf26 /odoo/addons/test_testing_utilities/menu.xml
parentca6d495ebf489d4388bebdbc20dd410fb6324919 (diff)
[FIX] core: handling of o2m record deletion in SSF
The SSF would properly mark its own records as deleted, but it would not properly handle deletion requests coming from an onchange, and it would not necessarily convert DELETE_ALL commands (5) into the proper sequence of individual (2)s matching existing records. closes odoo/odoo#31431
Diffstat (limited to 'odoo/addons/test_testing_utilities/menu.xml')
-rw-r--r--odoo/addons/test_testing_utilities/menu.xml17
1 files changed, 15 insertions, 2 deletions
diff --git a/odoo/addons/test_testing_utilities/menu.xml b/odoo/addons/test_testing_utilities/menu.xml
index 3ca18ef2a50..fa5f4f37163 100644
--- a/odoo/addons/test_testing_utilities/menu.xml
+++ b/odoo/addons/test_testing_utilities/menu.xml
@@ -1,4 +1,6 @@
<odoo>
+ <menuitem id="menu_ssf" parent="base.menu_tests" name="Server-side form"/>
+
<record id="action_test_o2m_onchange" model="ir.actions.act_window">
<field name="name">Test o2m onchange thing</field>
<field name="type">ir.actions.act_window</field>
@@ -6,7 +8,7 @@
<field name="view_mode">tree,form</field>
</record>
- <menuitem id="menu_o2m" parent="base.menu_tests"
+ <menuitem id="menu_o2m" parent="menu_ssf"
name="O2M onchange test thing"
action="action_test_o2m_onchange"/>
@@ -17,10 +19,21 @@
<field name="view_mode">tree,form</field>
</record>
- <menuitem id="menu_m2o" parent="base.menu_tests"
+ <menuitem id="menu_m2o" parent="menu_ssf"
name="test_default_and_onchange"
action="action_test_m2o_onchange"/>
+ <record id="action_test_o2m_count" model="ir.actions.act_window">
+ <field name="name">test_change_number_of_lines</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">test_testing_utilities.onchange_count</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem id="menu_o2m_count" parent="menu_ssf"
+ name="test_change_number_of_lines"
+ action="action_test_o2m_count"/>
+
<record id="o2m_parent" model="ir.ui.view">
<field name="name">Parent External Form</field>
<field name="priority">1</field>