product_usability: Add filter on suppliers on products

This commit is contained in:
Alexis de Lattre
2017-10-13 18:35:11 +02:00
parent 2abbe14109
commit 0b4a1add6b

View File

@@ -89,7 +89,6 @@
</field>
</record>
<!-- Also search on EAN13 -->
<record id="product_template_search_view" model="ir.ui.view">
<field name="name">product_usability.product.template.search</field>
<field name="model">product.template</field>
@@ -98,6 +97,9 @@
<field name="name" position="attributes">
<attribute name="filter_domain">['|', '|', ('name', 'ilike', self), ('default_code', 'ilike', self), ('ean13', '=', self)]</attribute>
</field>
<field name="categ_id" position="after">
<field name="seller_id" string="Supplier" filter_domain="[('seller_ids.name', 'ilike', self)]"/>
</field>
</field>
</record>