Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5838 Prikazi

For example for use in domain?

<field name="some_line_ids">
    <tree>
        <field name="name"/>
        <field name="field_inside_o2m"/>
        <field name="onother_field_inside_o2m" widget="selection" domain="[('field_inside_o2m','=',field_inside_o2m)]"/>
    </tree>
</field>

Access to field field_inside_o2m inside one2many generate error: name field_inside_o2m is not defined

Avatar
Opusti
Avtor Best Answer

All OK. Don't work because use widget="selection", that don't support dinamic domain. Without widget="selection" it work:

<field name="some_line_ids">
    <tree>
        <field name="name"/>
        <field name="field_inside_o2m"/>
        <field name="onother_field_inside_o2m" domain="[('field_inside_o2m','=',field_inside_o2m)]"/>
    </tree>
</field>
Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
7
avg. 25
34340
2
maj 24
9228
2
sep. 21
17025
0
mar. 21
3145
1
jan. 20
5356