[FIX] removed bad code
authorFabien Pinckaers <fp@tinyerp.com>
Wed, 15 Feb 2012 18:00:28 +0000 (19:00 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Wed, 15 Feb 2012 18:00:28 +0000 (19:00 +0100)
bzr revid: fp@tinyerp.com-20120215180028-jjgi6zni0mzzofpf

addons/stock/stock.py

index 4c8134c..885f7cd 100644 (file)
@@ -2458,14 +2458,12 @@ class stock_move(osv.osv):
                 quantity = move.product_qty
 
             uos_qty = quantity / move_qty * move.product_uos_qty
-            location_dest_id = move.product_id.property_stock_production or 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]
@@ -2482,7 +2480,6 @@ class stock_move(osv.osv):
                         '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)