[FIX]stock: after confirmed physical inventory, move line should be confiemd.
bzr revid: hmo@tinyerp.com-20111222095534-9b2y2hdk0l20f789
This commit is contained in:
@@ -2665,6 +2665,7 @@ class stock_inventory(osv.osv):
|
||||
message = _("Inventory '%s' is done.") %(inv.name)
|
||||
self.log(cr, uid, inv.id, message)
|
||||
self.write(cr, uid, [inv.id], {'state': 'confirm', 'move_ids': [(6, 0, move_ids)]})
|
||||
self.pool.get('stock.move').action_confirm(cr, uid, move_ids, context=context)
|
||||
return True
|
||||
|
||||
def action_cancel_draft(self, cr, uid, ids, context=None):
|
||||
|
||||
Reference in New Issue
Block a user