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

Hi,

I need to know how to get only stockable products for a Many2one field.

Avatar
Ignorer
Meilleure réponse

hello

apply the domain on the M2O field

<field name="your_fieldname" domain="[('type', '=', 'product')]"/>

Avatar
Ignorer
Meilleure réponse

Hello Dishan,

pass domain for many2one field.

domain = "[('type','=','product')]"  if you pass this domain on your xml it will filter only stockable products.

if you want only on hand qty available products then add this domain , domain = "[('qty_available','&gt;',0)]"


Avatar
Ignorer
Publications associées Réponses Vues Activité
3
oct. 23
19462
5
oct. 20
4105
2
juin 20
6704
5
avr. 25
16391
1
juil. 23
4429