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)]"
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
3
Okt. 23
|
21566 | |||
|
5
Okt. 20
|
5494 | |||
|
2
Juni 20
|
8340 | |||
|
5
Apr. 25
|
18838 | |||
|
1
Juli 23
|
5793 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.