Skip to content

Commit

Permalink
[FIX] sale: use name_search on product search
Browse files Browse the repository at this point in the history
Before 762aded the search was done on the related field product_id
This was equivalent to make a search on the records order_line.product_id
and to use the name_search of product to find it.

With the filter order_line.product_id.name, it was explicitly searching on the
name of the template

Fixes odoo#28344

closes odoo#28390
  • Loading branch information
mart-e committed Nov 5, 2018
1 parent f7aa7ce commit 0062690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sale/views/sale_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
will not be searched as often, and if they need to be searched it's usually in the context of products
and then they can be searched from the page listing the sale order lines related to a product (from the product itself).
-->
<field name="order_line" string="Product" filter_domain="[('order_line.product_id.name', 'ilike', self)]"/>
<field name="order_line" string="Product" filter_domain="[('order_line.product_id', 'ilike', self)]"/>
<filter string="My Orders" domain="[('user_id','=',uid)]" name="my_sale_orders_filter"/>
<separator/>
<filter string="My Activities" name="activities_my"
Expand Down

0 comments on commit 0062690

Please sign in to comment.