mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[CHG] views refinements
This commit is contained in:
@@ -142,7 +142,6 @@ class stock_reservation(orm.Model):
|
||||
assert len(ids) == 1, "1 ID expected, got %r" % ids
|
||||
reserv = self.read(cr, uid, ids[0], ['move_id'], context=context,
|
||||
load='_classic_write')
|
||||
|
||||
mod_obj = self.pool.get('ir.model.data')
|
||||
act_obj = self.pool.get('ir.actions.act_window')
|
||||
get_ref = mod_obj.get_object_reference
|
||||
|
||||
@@ -38,15 +38,15 @@
|
||||
<field name="date_validity" />
|
||||
<field name="create_date" groups="base.group_no_one"/>
|
||||
<field name="company_id"
|
||||
groups="base.group_multi_company"
|
||||
groups="base.group_multi_company"
|
||||
widget="selection"/>
|
||||
</group>
|
||||
<group name="location" string="Locations">
|
||||
<group name="location" string="Locations"
|
||||
groups="stock.group_locations">
|
||||
<field name="type" readonly="1" invisible="1"
|
||||
on_change="onchange_move_type(type)"/>
|
||||
<field name="location_id" groups="stock.group_locations"/>
|
||||
<field name="location_dest_id"
|
||||
groups="stock.group_locations"/>
|
||||
<field name="location_id"/>
|
||||
<field name="location_dest_id"/>
|
||||
</group>
|
||||
<group name="note" string="Notes">
|
||||
<field name="note" nolabel="1"/>
|
||||
@@ -65,7 +65,7 @@
|
||||
colors="blue:state == 'draft';grey:state == 'cancel'" >
|
||||
<field name="move_id" />
|
||||
<field name="product_id" />
|
||||
<field name="product_qty" total="sum" />
|
||||
<field name="product_qty" sum="Total" />
|
||||
<field name="product_uom" />
|
||||
<field name="date_validity" />
|
||||
<field name="state"/>
|
||||
@@ -99,10 +99,13 @@
|
||||
<field name="move_id" />
|
||||
<group expand="0" string="Group By...">
|
||||
<filter string="Status"
|
||||
name="groupby_state"
|
||||
domain="[]" context="{'group_by': 'state'}"/>
|
||||
<filter string="Product" domain="[]"
|
||||
name="groupby_product"
|
||||
context="{'group_by': 'product_id'}"/>
|
||||
<filter string="Product UoM" domain="[]"
|
||||
name="groupby_product_uom"
|
||||
context="{'group_by': 'product_uom'}"/>
|
||||
</group>
|
||||
</search>
|
||||
@@ -117,7 +120,8 @@
|
||||
<field name="view_id" ref="view_stock_reservation_tree"/>
|
||||
<field name="search_view_id" ref="view_stock_reservation_search"/>
|
||||
<field name="context">{'search_default_draft': 1,
|
||||
'search_default_reserved': 1}</field>
|
||||
'search_default_reserved': 1,
|
||||
'search_default_groupby_product': 1}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to create a stock reservation.
|
||||
|
||||
Reference in New Issue
Block a user