Is it possible to filter products in a sale order based on categories such as consumable or service?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
Hi,
Depending the position or where you need to apply this filtration, you can add the domain for the products, you have the field product_type to use in the domain.
Domain :  [('product_type', '=', 'service')]  
Above domain will give only service products, so depending on the need you can change it
Thanks
Hi,
You can filter the products by using the field product_type. If you need to show only the products having consumable and service products in the sale order lines. You can override the product_id field and you can add the domain:
domain ="[('product_type', 'in' ,['consu','service'])]"
or if you need only any single product type you can use "=" operation
domain ="[('product_type', '=' ,'consu')]"
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|  | 1 Mar 24  | 2979 | ||
|  | 1 Nis 25  | 2004 | ||
|  | 1 Şub 24  | 2597 | ||
| 
            
                Odoo App
            
            
                    Çözüldü
            
         |  | 1 Kas 23  | 2700 | |
|  | 0 May 24  | 2342 | 
 
                        
I'm inquiring about the possibility of adding a domain to the filters section at the top of the dashboard spreadsheet. Specifically, when creating filters for products, can we define a domain for them?