Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1946 Lượt xem

Is it possible to filter products in a sale order based on categories such as consumable or service?

Ảnh đại diện
Huỷ bỏ
Tác giả

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?

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 24
2353
1
thg 4 25
1523
1
thg 2 24
2140
Odoo App Đã xử lý
1
thg 11 23
2110
0
thg 5 24
1841