跳至内容
菜单
此问题已终结
2 回复
5459 查看

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
7143
2
9月 23
4997
12
10月 23
36067
1
4月 23
5422
0
10月 18
2901