In odoo sales-->> products default loaded can be sold products.But when I close the can be sold filter the other products automatically loaded .
How to prevent loading other products?
<record id="product.product_template_action_all" model="ir.actions.act_window"> <field name="name">Products</field> <field name="type">ir.actions.act_window</field> <field name="res_model">product.template</field> <field name="view_mode">kanban,tree,form</field> <field name="view_type">form</field> <field name="domain">[('sale_ok','=',True)]</field> <field name="search_view_id" ref="product.product_template_search_view"/> <field name="context">{}</field> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to define a new product. </p> </field> </record>
I tried like this it will not work.
How to fix this problem??