[FIX]stock: after confirmed physical inventory, move line should be confiemd.

bzr revid: hmo@tinyerp.com-20111222095534-9b2y2hdk0l20f789
This commit is contained in:
Harry (OpenERP)
2011-12-22 15:25:34 +05:30
parent ff625ae05f
commit f55caf24c6
+1
View File
@@ -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):