You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
2.4 KiB
38 lines
2.4 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<!--SEARCH [PRODUCT]-->
|
|
<record id="product.product_template_search_view" model="ir.ui.view">
|
|
<field name="name">product.template.search</field>
|
|
<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)]"/>
|
|
<filter string="Services"
|
|
name="filter_services"
|
|
icon="terp-accessories-archiver"
|
|
domain="[('type','=','service')]"/>
|
|
<filter string="Consumable" name="consumable" icon="terp-accessories-archiver" domain="[('type','=','consu')]" help="Consumable products"/>
|
|
<separator/>
|
|
<filter string="Can be Sold" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
|
|
<field name="categ_id" filter_domain="[('categ_id', 'child_of', self)]"/>
|
|
<field string="Product Variant" name="product_variant_ids" filter_domain="['|', ('product_variant_ids.name','ilike',self), ('product_variant_ids.attribute_value_ids.attribute_id.name','ilike',self)]"/>
|
|
<field name="company_id"/>
|
|
<field name="pricelist_id" widget="selection" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
|
|
<group expand='0' string='Group by...'>
|
|
<filter string='Category' domain="[]" context="{'group_by' : 'categ_id'}"/>
|
|
<filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}"/>
|
|
<filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<!--ACTION [PRODUCTS]-->
|
|
<record id="product.product_template_action" model="ir.actions.act_window">
|
|
<field name="context">{"search_default_filter_to_sell":1,"search_default_filter_services":1}</field>
|
|
</record>
|
|
|
|
|
|
</data>
|
|
</openerp>
|