Odoo Help

Welcome!

This community 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.

1

How in view access to field inside one2many?

By
Vasiliy Birukov
on 3/9/14, 9:03 AM 1,781 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--
3446
| 6 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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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