[IMP] product: Allow to search on variants barcode/ref from template
Purpose ======= Be able to search on the internal reference & Barcodes of the product variants from the search on product.template https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrZmw3Ym1LUzcwYU0/view?usp=drivesdk
This commit is contained in:
committed by
Yannick Tivisse
parent
62900064c0
commit
317f5f1111
@@ -124,7 +124,7 @@
|
||||
<field name="model">product.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Product">
|
||||
<field name="name" string="Product" filter_domain="['|','|',('default_code','ilike',self),('name','ilike',self),('barcode','ilike',self)]"/>
|
||||
<field name="name" string="Product" filter_domain="['|', '|', ('product_variant_ids.default_code', 'ilike', self),('name', 'ilike', self), ('barcode', 'ilike', self)]"/>
|
||||
<field name="categ_id" filter_domain="[('categ_id', 'child_of', raw_value)]"/>
|
||||
<separator/>
|
||||
<filter string="Services" name="services" domain="[('type','=','service')]"/>
|
||||
@@ -169,6 +169,9 @@
|
||||
<field name="mode">primary</field>
|
||||
<field name="inherit_id" ref="product.product_template_search_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="replace">
|
||||
<field name="name" string="Product" filter_domain="['|', '|', ('default_code', 'ilike', self), ('name', 'ilike', self), ('barcode', 'ilike', self)]"/>
|
||||
</field>
|
||||
<field name="attribute_line_ids" position="replace">
|
||||
<field name="attribute_value_ids" groups="product.group_product_variant"/>
|
||||
<field name="product_tmpl_id" string="Product Template"/>
|
||||
|
||||
Reference in New Issue
Block a user