[IMP] product: improved search views.
bzr revid: tpa@tinyerp.com-20120723061322-c3dcywvjfc8tlp4t
This commit is contained in:
parent
55998561c5
commit
330932bb5d
|
@ -113,7 +113,6 @@
|
|||
<field name="arch" type="xml">
|
||||
<search string="Products Price Search">
|
||||
<field name="name" string="Products Price"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="currency_id"/>
|
||||
<field name="type"/>
|
||||
<field name="active" />
|
||||
|
|
|
@ -10,29 +10,22 @@
|
|||
<field name="arch" type="xml">
|
||||
<search string="Product">
|
||||
<field name="name" string="Product" filter_domain="['|',('name','ilike',self),('default_code','ilike',self)]"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="categ_id" operator="child_of"/>
|
||||
<filter string="Services" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
|
||||
<filter string="Products" icon="terp-accessories-archiver" domain="['|',('type','=','product'),('type','=','consu')]" help="Both stockable and consumable products"/>
|
||||
<separator/>
|
||||
<filter string="To Sell" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
|
||||
<filter name="filter_to_purchase" string="To Purchase" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="categ_id" widget="selection" operator="child_of"/>
|
||||
<group expand="0" string="Context...">
|
||||
<field name="pricelist_id" widget="selection" context="{'pricelist': self}" groups="product.group_sale_pricelist"/>
|
||||
<separator orientation="vertical" groups="base.group_multi_company"/>
|
||||
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
|
||||
<field name="pricelist_id" context="{'pricelist': self}" groups="product.group_sale_pricelist"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<newline/>
|
||||
<group expand='0' string='Group by...'>
|
||||
<filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/>
|
||||
<separator orientation="vertical" groups="base.group_multi_company"/>
|
||||
<filter string='Company' icon="terp-go-home" domain="[]" context="{'group_by' : 'company_id'}" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -301,7 +294,6 @@
|
|||
<field name="arch" type="xml">
|
||||
<search string="Product Categories">
|
||||
<field name="name" string="Product Categories"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="parent_id"/>
|
||||
</search>
|
||||
</field>
|
||||
|
|
Loading…
Reference in New Issue