Odoo Help

Welcome!

This community 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.

0

Customized Filters query in Odoo 'Sales -> Product module'

By
Lerner
on 6/3/15, 3:29 AM 461 views

I have created two fields in the Odoo 'Sales -> Product module' they are 'Family' & 'SupFamily' columns I need to search the product bases on those values in the columns in the search bar on the top right of the Odoo in my local mechine.

and my configurations are given below..

how to make my customized field as the searchable field as the 'Name' field in the Odoo 'Sales -> Product module'. 

And how to reset the Odoo modules to default settings.

(‘x_RDFamily′,’=’,'A') -> Direct Filter on the form

----------------------------------------------------------------------------------

(‘x_RDFamily′,’=’,'A') -> Indirect Filter through the configuration

--------------------------------------------------------------------------------------------------------- 

<field name="x_RDFamily" domain =[(‘x_RDFamily′,’=’,'A'),(‘x_RDFamily′,’=’,'B')]/>

-------------------------------------------------------------------------------------------------------------

<field name="x_RDFamily" string="Family" filter_domain="['|',('default_code','ilike',self),('x_RDFamily','ilike',self)]"/>

-------------------------------------------------------------------------------------------------------------------------------------------------------

<field name="x_RDFamily" string="Family" filter_domain="[('Family','ilike',self)]"/>

-------------------------------------------------

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/3/15, 3:29 AM
Seen: 461 times
Last updated: 6/3/15, 5:30 AM