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:
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)]"
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
3
d’oct. 23
|
20094 | |||
|
5
d’oct. 20
|
4539 | |||
|
2
de juny 20
|
7180 | |||
|
5
d’abr. 25
|
16998 | |||
|
1
de jul. 23
|
4777 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.