Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5414 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
8
dic 19
7107
2
set 23
4959
12
ott 23
36022
1
apr 23
5366
0
ott 18
2876