This question has been flagged
2 Replies
8009 Views

How to open list view with advanced search and select from this list???

Or how to show search more?

Thanks

Avatar
Discard
Author Best Answer

I Found answer:

https://www.odoo.com/forum/help-1/question/search-more-in-many2one-field-20108#answer-107034

I spent 7 hours on this problem and all I had to do was add few more records! <-- This is Answer. Thank you!

Avatar
Discard
Best Answer

To show the advanced search  in default while you open the tree view 

1) You add your advanced search view 

<filter name="name_of_your_filter" 
        string="Your Advanced Search view name"
        domain="your domain such as [('value','=',False)]"/>

2) Edit the context in your action

<record model="ir.actions.act_window" id="module_of_action.action_name">
     <field name="context">{'search_default_name_of_your_filter':1}</field>
 </record> 
Avatar
Discard