콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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

아바타
취소
작성자

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?

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
3월 24
2637
1
4월 25
1730
1
2월 24
2333
Odoo App 해결 완료
1
11월 23
2330
0
5월 24
2035