Skip to Content
Menu
This question has been flagged
3185 Views


In Products module I added a new column named 'Family Column' I need to add filter function as we search product by name as like that I need to search the product by its family too, I use come configurations but not working, can any one suggest perfect procedure to do the customized filter in Odoo. My configurations are given below in Sales->Product module in Odoo

Field Configurations:-

Field Name= x_RDFamily ;        Label Name= Family;           Type= char;           Model= Product Template

Search Configurations:-

<filter string="family" domain="[('x_RDFamily','in',('open','draft'))]" help="Draft, Open and Pending Tasks" icon="terp-project"/>

<field name="x_RDFamily" select="1" widget="selection">

<filter domain="[('product.template.x_RDFamily','=',uid)]" help="My Projects" icon="terp-project"/>

</field>

Avatar
Discard