Search code examples
odooodoo-8

odoo 8 how to make a filter to search product in sale_order_line


I want to make a filter to search product to sale_order_line but got error.

<field name="line_ids.product_id" string="Sales" filter_domain="[('line_ids.product_id','ilike',self)]"/>

What is the correct one?


Solution

  • You have to make the filter like this:

    <field name="line_ids" string="Products" filter_domain="[('line_ids.product_id.name', 'ilike', self)]"/>