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

Hi everyone,

I have defined a many2many field in my customized form.When i select many2many field value need to throw values to one2many field.Is it possible to do? Please advise in this situation.Thanks in advance

アバター
破棄
最善の回答

Yes, it is possible to manage this kind of situation.

you can get many2many ids in py onchange method and then like other fields you can set value of one2many fields also, just need to care about its format.


'sale_ids': [[0, False, {dictionary contains field value}]] 

I hope this is helpful.


アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 20
3336
0
2月 19
3889
0
4月 16
3538
3
3月 16
14486
1
9月 15
5455