跳至內容
選單
此問題已被標幟
1 回覆
5119 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 24
2141
0
7月 24
3178
0
7月 22
60
1
7月 22
3079
2
12月 23
33624