diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2008-12-11 14:52:36 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2008-12-11 14:52:36 +0100 |
| commit | 080e0dc652d8e70d91dbb5fcc33d95b2899da251 (patch) | |
| tree | 052691097c23f1f38c932f972aadc2e68eaf54e8 /bin/addons/base/module/module.py | |
| parent | 458324a685a10a661b95d94c6691550a0c38b839 (diff) | |
[FIX] module upgrade: revert (bad) patch to mark new deps to be installed
bzr revid: christophe@tinyerp.com-20081211135236-z30llytkl40i1qnt
Diffstat (limited to 'bin/addons/base/module/module.py')
| -rw-r--r-- | bin/addons/base/module/module.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index cde52e36a19..26570685f43 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -248,7 +248,6 @@ class module(osv.osv): def button_upgrade(self, cr, uid, ids, context=None): depobj = self.pool.get('ir.module.module.dependency') todo = self.browse(cr, uid, ids, context=context) - to_install = set() i = 0 while i<len(todo): mod = todo[i] @@ -260,10 +259,7 @@ class module(osv.osv): for dep in depobj.browse(cr, uid, iids, context=context): if dep.module_id.state=='installed': todo.append(dep.module_id) - elif dep.module_id.state == 'uninstalled': - to_install.add(dep.module_id.id) self.write(cr,uid, map(lambda x: x.id, todo), {'state':'to upgrade'}, context=context) - self.button_install(cr, uid, list(to_install)) return True def button_upgrade_cancel(self, cr, uid, ids, context={}): |
