[IMP]: stock: Pass context properly in copy of move

bzr revid: rpa@tinyerp.com-20101124105029-5kbr51s9ks1w3raz
This commit is contained in:
rpa (Open ERP)
2010-11-24 16:20:29 +05:30
parent 537f799507
commit 2be6a46a1f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -251,7 +251,7 @@ class split_in_production_lot(osv.osv_memory):
'state': move.state
}
if quantity_rest > 0:
current_move = move_obj.copy(cr, uid, move.id, default_val)
current_move = move_obj.copy(cr, uid, move.id, default_val, context=context)
new_move.append(current_move)
if quantity_rest == 0:
@@ -279,6 +279,7 @@ class split_in_production_lot(osv.osv_memory):
inventory_obj.write(cr, uid, inventory_id, {'move_ids': [(4, m_id)]}, context=context)
return new_move
split_in_production_lot()
class stock_move_split_lines_exist(osv.osv_memory):
+1 -1
View File
@@ -76,7 +76,7 @@ class stock_split_into(osv.osv_memory):
'state': move.state,
'product_uos': move.product_uom.id
}
current_move = move_obj.copy(cr, uid, move.id, default_val)
current_move = move_obj.copy(cr, uid, move.id, default_val, context=context)
new_move.append(current_move)
if inventory_id and new_move: