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

Hello Community

i'm trying to change product route depending on some condition but i'm having hard time figuring out how to check an many2many_checkbox with python code ,is there any way to do so ?

アバター
破棄
最善の回答

Use the special operator [(6,0, IDS)], where IDS is a list of m2m values you would like to enter. E.g. [1,2,9]

Basically, filling m2m doesn't depend upon a used widget

アバター
破棄