diff options
| author | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2013-10-14 19:19:29 +0530 |
|---|---|---|
| committer | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2013-10-14 19:19:29 +0530 |
| commit | e835e6a02b7dd6bbd7b555f4cb0a9625831b4e83 (patch) | |
| tree | c3135fff578fb54c142f616b3b7e4b41f892d0d4 | |
| parent | d74a5ff57e9b394c9bbc60ab44fff6811f860412 (diff) | |
[FIX] stock: use SUPERUSER_ID to create/copy move.putaway
bzr revid: psi@tinyerp.com-20131014134929-guotecza5stzrhyw
| -rw-r--r-- | addons/stock_location/stock_location.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock_location/stock_location.py b/addons/stock_location/stock_location.py index 0a7df282f55..04ab9a99400 100644 --- a/addons/stock_location/stock_location.py +++ b/addons/stock_location/stock_location.py @@ -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 |
