[FIX] stock: use SUPERUSER_ID to create/copy move.putaway

bzr revid: psi@tinyerp.com-20131014134929-guotecza5stzrhyw
This commit is contained in:
Purnendu Singh (OpenERP)
2013-10-14 19:19:29 +05:30
parent d74a5ff57e
commit e835e6a02b
+1 -1
View File
@@ -823,7 +823,7 @@ class stock_move(osv.osv):
# Should call different methods here in later versions
# TODO: take care of lots
if putaway.method == 'fixed' and putaway.location_spec_id:
moveputaway_obj.create(cr, uid, {'move_id': move.id,
moveputaway_obj.create(cr, SUPERUSER_ID, {'move_id': move.id,
'location_id': putaway.location_spec_id.id,
'quantity': move.product_uom_qty}, context=context)
return True