Merge pull request #1992 from odoo-dev/8.0-wmspartialview-jco

8.0 wmspartialview jco
This commit is contained in:
Josse Colpaert
2014-08-26 11:48:33 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2414,7 +2414,7 @@ class stock_move(osv.osv):
'product_uos_qty': move.product_uos_qty - uos_qty,
}, context=ctx)
if move.move_dest_id and move.propagate:
if move.move_dest_id and move.propagate and move.move_dest_id.state not in ('done', 'cancel'):
new_move_prop = self.split(cr, uid, move.move_dest_id, qty, context=context)
self.write(cr, uid, [new_move], {'move_dest_id': new_move_prop}, context=context)
#returning the first element of list returned by action_confirm is ok because we checked it wouldn't be exploded (and
@@ -37,7 +37,7 @@
The source package will be moved entirely. If you specify a destination package, the source package will be put in the destination package.
</div>
</group>
<group>
<group groups="stock.group_tracking_lot">
<field name="packop_ids"
context="{'default_sourceloc_id':picking_source_location_id,
'default_destinationloc_id':picking_destination_location_id}" nolabel="1">