Odoo Help

1

How in view access to field inside one2many?

By
Vasiliy Birukov
on 3/9/14, 9:03 AM 2,144 views

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

1

Vasiliy Birukov

--Vasiliy Birukov--
3491
| 7 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 3/10/14, 2:48 AM

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>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 3/9/14, 9:03 AM
Seen: 2144 times
Last updated: 5/6/16, 5:40 AM