From f55caf24c678914e8af85f157e6c756146d7e40a Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Thu, 22 Dec 2011 15:25:34 +0530 Subject: [PATCH] [FIX]stock: after confirmed physical inventory, move line should be confiemd. bzr revid: hmo@tinyerp.com-20111222095534-9b2y2hdk0l20f789 --- addons/stock/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index bcdf22d1716..54ce67f6723 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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):