Odoo Help


Get value from the parent field

Khulan Batbayar
on 1/14/15, 9:07 AM 1,060 views

<field name="parent"/>

<field name="related">

      <field name="related_1"/>

      <field name="related_1" context="{'id':parent}"/>



However i got "parent" is not recognized. How should i solve?


Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

On 1/14/15, 10:14 AM

Pass context on field "related" which am guessing, it is a one2many field

Have a look at this:

<field name="related" context="{'id2':parent}">

      <field name="related_1"/>

      <field name="related_1" context="{'id1':context.get('id2')}"/>


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.


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

1 follower(s)


Asked: 1/14/15, 9:07 AM
Seen: 1060 times
Last updated: 3/16/15, 8:10 AM