From 91e2f842616bfc85f06aae2ff954afa226496b59 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 7 Jan 2009 15:33:17 +0100 Subject: [PATCH] [FIX] Certificate or None bzr revid: stephane@tinyerp.com-20090107143317-8huptlakzzav0v2d --- bin/addons/base/module/module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index 16da7d10ba6..cb9068cefde 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -332,7 +332,7 @@ class module(osv.osv): 'author': terp.get('author', 'Unknown'), 'website': terp.get('website', ''), 'license': terp.get('license', 'GPL-2'), - 'certificate': terp.get('certificate'), + 'certificate': terp.get('certificate') or None, }) cr.execute('DELETE FROM ir_module_module_dependency WHERE module_id = %s', (id,)) self._update_dependencies(cr, uid, ids[0], terp.get('depends', [])) @@ -352,7 +352,7 @@ class module(osv.osv): 'author': terp.get('author', 'Unknown'), 'website': terp.get('website', ''), 'license': terp.get('license', 'GPL-2'), - 'certificate': terp.get('certificate'), + 'certificate': terp.get('certificate') or None, }) res[1] += 1 self._update_dependencies(cr, uid, id, terp.get('depends', [])) @@ -433,7 +433,7 @@ class module(osv.osv): 'author': terp.get('author', 'Unknown'), 'website': terp.get('website', ''), 'license': terp.get('license', 'GPL-2'), - 'certificate': terp.get('certificate'), + 'certificate': terp.get('certificate') or None, }) cr.execute('DELETE FROM ir_module_module_dependency ' \ 'WHERE module_id = %s', (mod.id,))