[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
This commit is contained in:
Jay (Open ERP)
2009-07-08 18:24:28 +05:30
parent 0505747a53
commit a472c61d6e
+1 -1
View File
@@ -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