Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I add a new field using selection that consist list of country. How to filter the country in list view (using search field in top right of the screen)? Or how to add a search like "Search 'my_filter' for : " in the search bar like the image below?
A good way to accomplish this is to modify that particular view, specifically the search view section. If it doesn't have one you can add it. Here is good instruction for this: link text
Also see this about the filter tag as another possible solution: link text
<filter string="Current" domain="[('state','in',('open','draft'))]" help="Draft, Open and Pending Tasks" icon="terp-project"/> <field name="project_id" select="1" widget="selection"> <filter domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-project"/> </field>
The most simple method would be to create an advanced search including that custom field and save it.
Activate the Developer Mode
Go to the view you want to add the filter to
From the debug dropdown menu, select Manage Filters, and click Create
Give the filter a name and select the correct model (in your case Project Issue?)
Clear the User field so that everyone can access the filter
In the Domain section you put the filter condition itself, for example [('region','=','Africa')]
Save and go back to the tree view, and your filter should show up in the Custom Filters section of the search box
Hope that helps
To search customers by phone or by mobile:
1. Activate the Developer Mode
2. Go to sales, customers
3. From the debug dropdown menu, select Edit SearchView
To search by phone add:
<field name="phone" filter_domain="['|','|',('display_name','ilike',self),('ref','=',self),('phone','ilike',self)]"/>
To search by mobile add:
<field name="mobile" filter_domain="['|','|',('display_name','ilike',self),('ref','=',self),('mobile','ilike',self)]"/>
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/19/13, 8:03 AM|
|Seen: 11835 times|
|Last updated: 8/12/16, 5:21 AM|