bzr revid: mma@tinyerp.com-20120206125555-vtsctfdat20sgm30
This commit is contained in:
Mayur Maheshwari (OpenERP)
2012-02-06 18:25:55 +05:30
parent 687e7dab7f
commit 2672349092
-4
View File
@@ -2452,14 +2452,12 @@ class stock_move(osv.osv):
quantity = move.product_qty
uos_qty = quantity / move_qty * move.product_uos_qty
location_dest_id = move.location_dest_id
if quantity_rest > 0:
default_val = {
'product_qty': quantity,
'product_uos_qty': uos_qty,
'state': move.state,
'location_id': location_id or move.location_id.id,
'location_dest_id': location_dest_id.id,
}
current_move = self.copy(cr, uid, move.id, default_val)
res += [current_move]
@@ -2475,8 +2473,6 @@ class stock_move(osv.osv):
update_val = {
'product_qty' : quantity_rest,
'product_uos_qty' : uos_qty_rest,
'location_id': location_id or move.location_id.id,
'location_dest_id': location_dest_id.id,
}
self.write(cr, uid, [move.id], update_val)