summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/module.py
diff options
context:
space:
mode:
authorChristophe Simonis <christophe@tinyerp.com>2008-12-12 15:14:36 +0100
committerChristophe Simonis <christophe@tinyerp.com>2008-12-12 15:14:36 +0100
commit5a38fc48991b4ab9aa8b42938a0b233702fca584 (patch)
tree52f3780946dc31b9edb11b6c0050b726a7e88e98 /bin/addons/base/module/module.py
parent43f0fffd076a60cb53b0dc7831e12b34525ff17f (diff)
[FIX] fix with detection of dependencies
lp bug: https://launchpad.net/bugs/307393 fixed bzr revid: christophe@tinyerp.com-20081212141436-s3n6410mhuddm3ru
Diffstat (limited to 'bin/addons/base/module/module.py')
-rw-r--r--bin/addons/base/module/module.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py
index 9a5ba75a57d..ef8a5865628 100644
--- a/bin/addons/base/module/module.py
+++ b/bin/addons/base/module/module.py
@@ -257,7 +257,7 @@ class module(osv.osv):
_("Can not upgrade module '%s'. It is not installed.") % (mod.name,))
iids = depobj.search(cr, uid, [('name', '=', mod.name)], context=context)
for dep in depobj.browse(cr, uid, iids, context=context):
- if dep.module_id.state=='installed':
+ if dep.module_id.state=='installed' and dep.module_id not in todo:
todo.append(dep.module_id)
ids = map(lambda x: x.id, todo)
@@ -271,7 +271,7 @@ class module(osv.osv):
if dep.state == 'uninstalled':
ids2 = self.search(cr, uid, [('name','=',dep.name)])
to_install.extend(ids2)
-
+
self.button_install(cr, uid, to_install, context=context)
return True