In Odoo 12, I've defined a form containing a One2many field.
<field name="child_ids">
<tree>
<field name="child_attr"/>
</tree>
</field>
In both models (parent and child), all fields are defined as readonly=True
. Clicking on a line of child_ids
's list yields a popup, a behavior I'd like to suppress.
So far I have tried, in all possible combinations, to no avail:
- adding
create="false" edit="false" editable="bottom"
to the<tree>
tag (and some variations) - adding
options="{'no_create': True, 'no_open': True}"
to the<field>
tag - creating an extra
ir.actions.act_window
forchild_ids
's model that includes onlytree
asview_mode
- creating an empty form definition for
child_ids
's model (this opens an empty popup)
What am I missing?