Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5391 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

Look this 

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

If the answer is correct, tell me

Avatar
Zrušit
Autor Nejlepší odpověď

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>
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
8
pro 19
7099
2
zář 23
4921
12
říj 23
36018
1
dub 23
5333
0
říj 18
2869