Skip to Content
मेन्यू
This question has been flagged
2 Replies
3690 Views

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.



Avatar
Discard

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

Best Answer

. 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... )

Avatar
Discard
Related Posts Replies Views Activity
1
जून 15
4120
0
सित॰ 24
1263
2
मई 24
9255
1
अप्रैल 23
5169
7
अप्रैल 23
19170