Hi,
I need to know how to get only stockable products for a Many2one field.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I need to know how to get only stockable products for a Many2one field.
hello
apply the domain on the M2O field
<field name="your_fieldname" domain="[('type', '=', 'product')]"/>
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','>',0)]"
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
paź 23
|
19104 | ||
|
5
paź 20
|
3809 | ||
|
2
cze 20
|
6473 | ||
|
5
kwi 25
|
16087 | ||
|
1
lip 23
|
4251 |