summaryrefslogtreecommitdiff
path: root/bin/addons/base/module
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2009-01-07 15:33:17 +0100
committerStephane Wirtel <stephane@tinyerp.com>2009-01-07 15:33:17 +0100
commit91e2f842616bfc85f06aae2ff954afa226496b59 (patch)
treee1f4f520262f9aff7d476ccefcb878f82e7bfce6 /bin/addons/base/module
parent0391fd7dc039743a3e4f22548ef00811d0400d93 (diff)
[FIX] Certificate or None
bzr revid: stephane@tinyerp.com-20090107143317-8huptlakzzav0v2d
Diffstat (limited to 'bin/addons/base/module')
-rw-r--r--bin/addons/base/module/module.py6
1 files 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,))