From a472c61d6ef28f07c8c8138950d2a9527ff9d224 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Wed, 8 Jul 2009 18:24:28 +0530 Subject: [PATCH] [FIX] Certificate in non-digit format will not be accepted lp bug: https://launchpad.net/bugs/392052 fixed bzr revid: jvo@tinyerp.com-20090708125428-vhbhb7or1oeidjjo --- bin/addons/base/module/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index d239de2d022..6f818a69041 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -480,7 +480,7 @@ class module(osv.osv): if not mod.description: logger.notifyChannel("init", netsvc.LOG_WARNING, 'module %s: description is empty !' % (mod.name,)) - if not mod.certificateor or not mod.certificate.isdigit(): + if not mod.certificate or not mod.certificate.isdigit(): logger.notifyChannel('init', netsvc.LOG_WARNING, 'module %s: no quality certificate' % (mod.name,)) else: val = long(mod.certificate[2:]) % 97 == 29