[IMP] product: search on internal reference
authorMartin Trigaux <mat@odoo.com>
Mon, 3 Nov 2014 14:59:17 +0000 (15:59 +0100)
committerMartin Trigaux <mat@odoo.com>
Mon, 3 Nov 2014 15:05:49 +0000 (16:05 +0100)
commitaf2107328570c976850a3859343e9e006caee6e1
treec417a6faec4161e57765ac9e2a4def8cd8d8b388
parent4df2e6dee377fc42e9021cb0c8f1c1e0e9b3772d
[IMP] product: search on internal reference

When searching on the name of a product.template, search also on the default_code. Move the filter from product.product to product.template.
The field default_code is on the product.product but accessible through a related field, meaning when reading it will fetch only the first variant but searching on all variants.
Fixes #3399
addons/product/product_view.xml