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

Is there a way to add domain on one2many field? So far I am returning:

return {

      'domain':{

          'mrp_stock_line_ids':[('id','=',product_id)]

      }

}


but it is not doing anything, also I get no error.



アバター
破棄

Hi dean , please describe your method clearly so we can solve your problem if we know

最善の回答

. you are setting domain on mrp_stock_line_ids field, and want to show (line) id = product_id... .try
[('product_id','=',product_id)]  for a domin...
(guess you want to show only lines wich has selected product... )

アバター
破棄
関連投稿 返信 ビュー 活動
1
6月 15
4274
0
9月 24
1429
2
5月 24
9526
1
4月 23
5354
7
4月 23
19350