Odoo Help

0

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

By
Lerner
on 6/3/15, 3:29 AM 767 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)]"/>

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

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

Question tools

1 follower(s)

Stats

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