Skip to Content
Menú
This question has been flagged
2 Respostes
3727 Vistes

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
Descartar

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
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 15
4172
0
de set. 24
1296
2
de maig 24
9327
1
d’abr. 23
5215
7
d’abr. 23
19205