[FIX]should not show remaining qty on move when picking is done + better name for separator on picking view

bzr revid: csn@openerp.com-20140130163651-audc4ndjx4ysys3h
This commit is contained in:
Cedric Snauwaert
2014-01-30 17:36:51 +01:00
parent b566e41159
commit f3cc05755b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1316,7 +1316,7 @@ class stock_move(osv.osv):
if move.picking_id:
if move.picking_id.state in ('draft', 'confirmed', 'partially_available'):
info = info_available + info
if move.picking_id.pack_operation_exist:
if move.picking_id.pack_operation_exist and state != 'done':
info += info_remaining
res[move.id] = info
return res
+1 -1
View File
@@ -783,7 +783,7 @@
</group>
<notebook>
<page string="Products">
<separator string="Expected Quantities" attrs="{'invisible': [('pack_operation_exist', '=', False)]}"/>
<separator string="Stock Moves" attrs="{'invisible': [('pack_operation_exist', '=', False)]}"/>
<field name="move_lines" context="{'address_in_id': partner_id, 'form_view_ref':'stock.view_move_picking_form', 'tree_view_ref':'view_move_picking_tree', 'default_picking_type_id': picking_type_id,'default_picking_id': active_id}"/>
<group>
<group col="3">