Skip to Content
Menu
This question has been flagged
2 Replies
3800 Rodiniai

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.



Portretas
Atmesti

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 15
4216
0
rugs. 24
1369
2
geg. 24
9448
1
bal. 23
5307
7
bal. 23
19324