summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/module.py
diff options
context:
space:
mode:
authorChristophe Simonis <christophe@tinyerp.com>2009-06-12 13:00:33 +0200
committerChristophe Simonis <christophe@tinyerp.com>2009-06-12 13:00:33 +0200
commit60cf794c7d98c4180a8a748a6cdd4cda754cb13d (patch)
treef46e81f64fd7a875b5fbb33149e6276cb4c3c0ac /bin/addons/base/module/module.py
parente12f2d28a3d58fb8d8de9a0d200201f3d01b2fea (diff)
[FIX] upgrade doesn't try to delete modules
lp bug: https://launchpad.net/bugs/357045 fixed bzr revid: christophe@tinyerp.com-20090612110033-hw8acue29oh0f2rx
Diffstat (limited to 'bin/addons/base/module/module.py')
-rw-r--r--bin/addons/base/module/module.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py
index 9042ee9e711..2da10afc509 100644
--- a/bin/addons/base/module/module.py
+++ b/bin/addons/base/module/module.py
@@ -493,10 +493,11 @@ class module(osv.osv):
id = super(module, self).create(cr, uid, data, context)
if data.get('name'):
self.pool.get('ir.model.data').create(cr, uid, {
- 'name': 'module_name_translation',
+ 'name': 'module_meta_information',
'model': 'ir.module.module',
'res_id': id,
- 'module': data['name']
+ 'module': data['name'],
+ 'noupdate': True,
})
return id
module()