I'm scratching my head to find a way to change the default filter of the customer view et eventually other views too.
My filter is created, but I just don't know how to change the actual default filter to "Customer + My Filter"... I want to inherit this windows action to add my extra search_default. Is it possible???
<record id="action_partner_form" model="ir.actions.act_window"> <field name="name">Customers</field> <field name="type">ir.actions.act_window</field> <field name="res_model">res.partner</field> <field name="view_type">form</field> <field name="view_mode">kanban,tree,form</field> <field name="context">{"search_default_customer":1}</field> <field name="search_view_id" ref="view_res_partner_filter"/> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to add a contact in your address book. </p><p> Odoo helps you easily track all activities related to a customer; discussions, history of business opportunities, documents, etc. </p> </field> </record>
Hope these customization tips will help you: https://learnopenerp.blogspot.com/