Odoo Help

0

Get value from the parent field

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

<field name="parent"/>

<field name="related">

      <field name="related_1"/>

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

</field>

 

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

0
deep
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')}"/>

</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

1 follower(s)

Stats

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