Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3753 Vues

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
Ignorer

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

Meilleure réponse

. 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
Ignorer
Publications associées Réponses Vues Activité
1
juin 15
4191
0
sept. 24
1316
2
mai 24
9365
1
avr. 23
5247
7
avr. 23
19265