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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
2
ตอบกลับ
5407
มุมมอง
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 |