[IMP] stock: Group by product on lot/serial number list view

PURPOSE
=======

By default the list view of LN/SN should be group by products which is more readable for end user.

SPECIFICATION
=============

Default group by product on lot/serial number list view
This commit is contained in:
kso
2017-06-14 14:49:41 +02:00
committed by Yannick Tivisse
parent 1053dbf5f1
commit 83a499024c
@@ -71,7 +71,7 @@
<field name="name" string="Product Lots" filter_domain="['|',('name','ilike',self),('ref','ilike',self)]"/>
<field name="product_id"/>
<group expand="0" string="Group By">
<filter string="Product" domain="[]" context="{'group_by':'product_id'}"/>
<filter name="group_by_product" string="Product" domain="[]" context="{'group_by':'product_id'}"/>
</group>
</search>
</field>
@@ -84,7 +84,7 @@
<field name="view_type">form</field>
<field name="view_id" ref="view_production_lot_tree"/>
<field name="search_view_id" ref="search_product_lot_filter"/>
<field name="context">{}</field>
<field name="context">{'search_default_group_by_product': 1}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a lot/serial number.