Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5407 มุมมอง

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>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
8
ธ.ค. 19
7106
2
ก.ย. 23
4945
Remove "add an item" แก้ไขแล้ว
12
ต.ค. 23
36021
1
เม.ย. 23
5350
0
ต.ค. 18
2872