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

I want to hide all products that are not checked. for example:- I have a checkbox button in product.template model and i want to hide hide all those products that are unchecked.

아바타
취소
베스트 답변

Look this 

https://www.odoo.com/fr_FR/forum/aide-1/question/understanding-openerp-domain-filter-58405

If the answer is correct, tell me

아바타
취소
작성자 베스트 답변

I have  solved by adding domain field in action window by following code:-


<record id="action_product_pack_view" model="ir.actions.act_window">
        <field name="name">product pack</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">product.template</field>
        <field name="view_type">form</field>
        <field name="view_mode">kanban,tree,form</field>
        <field name="domain">[('is_pack','=',True)]</field>
아바타
취소
관련 게시물 답글 화면 활동
8
12월 19
7223
2
9월 23
5098
12
10월 23
36151
1
4월 23
5556
0
10월 18
2975