From 6be5a0c212c5dadd5a7b0f65d239e3dd933f75a9 Mon Sep 17 00:00:00 2001 From: "Harry (Open ERP)" Date: Wed, 17 Mar 2010 17:43:57 +0530 Subject: [PATCH] [FIX] mrp bzr revid: hmo@tinyerp.com-20100317121357-48xpq5lda7xd10ea --- addons/mrp/mrp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 073e46b3380..0a6d03aa0a3 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -1112,7 +1112,8 @@ class mrp_procurement(osv.osv): @return : True """ res = self.make_mo(cr, uid, ids, context=context) - return 1 #TO CHECK: why workflow is generated error if return True + res = res.values() + return len(res) and res[0] or 0 #TO CHECK: why workflow is generated error if return not integer value def make_mo(self, cr, uid, ids, context={}): """ @@ -1157,7 +1158,8 @@ class mrp_procurement(osv.osv): @return : True """ res = self.make_po(cr, uid, ids, context=context) - return 1 #TO CHECK: why workflow is generated error if return True + res = res.values() + return len(res) and res[0] or 0 #TO CHECK: why workflow is generated error if return not integer value def make_po(self, cr, uid, ids, context={}): """