コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5096 ビュー

<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
2130
0
7月 24
3168
0
7月 22
60
1
7月 22
3074
2
12月 23
33607