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

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
4191
0
9月 24
1312
2
5月 24
9357
1
4月 23
5238
7
4月 23
19238