diff options
| author | Xavier Morel <xmo@odoo.com> | 2019-03-22 12:43:50 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-04-03 08:44:21 +0000 |
| commit | 922d77a29100453d831f61df9411715b383605df (patch) | |
| tree | bd25858d555049285400c7d9c227417c63572239 /odoo/addons/test_testing_utilities/menu.xml | |
| parent | 7e0b29cbcdaa324e342d6877dd220749b8211771 (diff) | |
[FIX] core: infinite recursion in SSF on self-recursive models
The extra setup probably affects any o2m whose edition view itself
contains an o2m, but most likely to blow up entirely on models with
some sort of tree structure (parent/child relationship): the SSF
eagerly loads and setups the o2m's view, and the o2m's o2m's, ... ad
infinitam.
A better / cleaner fix would be to set up the subview on-demand (and
possibly cache it), but the rest of the o2m stuff is unlikely to work
correctly recursively so just don't recurse the o2m view setup at all
for now.
fixes #31458
Diffstat (limited to 'odoo/addons/test_testing_utilities/menu.xml')
| -rw-r--r-- | odoo/addons/test_testing_utilities/menu.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/odoo/addons/test_testing_utilities/menu.xml b/odoo/addons/test_testing_utilities/menu.xml index fa5f4f37163..491a74dda46 100644 --- a/odoo/addons/test_testing_utilities/menu.xml +++ b/odoo/addons/test_testing_utilities/menu.xml @@ -151,4 +151,17 @@ </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> + <field name="arch" type="xml"> + <form> + <sheet> + <field name="one_to_many_id"/> + <field name="many_to_one_ids"/> + </sheet> + </form> + </field> + </record> </odoo> |
