diff options
| author | Xavier ALT <xal@odoo.com> | 2020-09-21 13:21:30 +0000 |
|---|---|---|
| committer | Xavier ALT <xal@odoo.com> | 2020-10-14 07:07:12 +0000 |
| commit | a29837f01a567e09ea389ad4adaf96943448c43d (patch) | |
| tree | dba3ea401170453f538743cf6dd13452f96ae93b /odoo/addons/test_testing_utilities/menu.xml | |
| parent | b20bb5b6685d28e5675e92ee4b61e3cd9bf7dea7 (diff) | |
[FIX] core: add UPDATE as valid many2many command in SSF
This commit fix the "Unsupported M2M command 1" raised `Form` helper.
The `onchange()` method will in fact emit UPDATE command for many2many
fields when the value submitted an the one in database has changed
(this is the case for example for nested m2m in form views)
OPW-2044631
closes odoo/odoo#59937
X-original-commit: 76bd8208a416cefab6becff9f2d7204c7d196201
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Signed-off-by: Xavier ALT <xavieralt@users.noreply.github.com>
Diffstat (limited to 'odoo/addons/test_testing_utilities/menu.xml')
| -rw-r--r-- | odoo/addons/test_testing_utilities/menu.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/odoo/addons/test_testing_utilities/menu.xml b/odoo/addons/test_testing_utilities/menu.xml index 0bf87b6d5f5..e20c740e8c8 100644 --- a/odoo/addons/test_testing_utilities/menu.xml +++ b/odoo/addons/test_testing_utilities/menu.xml @@ -152,6 +152,30 @@ </field> </record> + <record id="m2m_change_view" model="ir.ui.view"> + <field name="name">M2M Change View</field> + <field name="model">test_testing_utilities.f</field> + <field name="arch" type="xml"> + <form> + <field name="m2o"/> + <field name="m2m" nolabel="1"> + <tree> + <field name="name"/> + <field name="m2o_ids" widget="many2many_tags"/> + </tree> + <form> + <field name="name"/> + <field name="m2o_ids"> + <tree> + <field name="name"/> + </tree> + </field> + </form> + </field> + </form> + </field> + </record> + <record id="o2m_recursive_relation_view" model="ir.ui.view"> <field name="name">Recursive Relation Test View</field> <field name="model">test_testing_utilities.recursive</field> |
