[IMP] improved the code
bzr revid: bde@tinyerp.com-20130821093742-rt0lvwdw98aiwx3w
This commit is contained in:
@@ -97,7 +97,6 @@ class procurement_order(osv.osv):
|
||||
move_obj = self.pool.get('stock.move')
|
||||
move_dict = self._run_move_create(cr, uid, procurement, context=context)
|
||||
move_id = move_obj.create(cr, uid, move_dict, context=context)
|
||||
self.write(cr, uid, procurement.id, {'move_dest_id': move_id}, context=context)
|
||||
move_obj.action_confirm(cr, uid, [move_id], context=context)
|
||||
return move_id
|
||||
return super(procurement_order, self)._run(cr, uid, procurement, context)
|
||||
|
||||
Reference in New Issue
Block a user