تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5393 أدوات العرض

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
ديسمبر 19
7102
2
سبتمبر 23
4925
12
أكتوبر 23
36019
1
أبريل 23
5336
0
أكتوبر 18
2869