Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5111 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
2131
0
ก.ค. 24
3172
0
ก.ค. 22
60
1
ก.ค. 22
3075
2
ธ.ค. 23
33612