[FIX] upgrade a module now install the new dependencies

bzr revid: christophe@tinyerp.com-20081211145420-2dy5ym0mo8s0bsex
This commit is contained in:
Christophe Simonis 2008-12-11 15:54:20 +01:00
parent e85e69dffd
commit 5e510fc977
1 changed files with 4 additions and 1 deletions

View File

@ -259,7 +259,10 @@ 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)
self.write(cr,uid, map(lambda x: x.id, todo), {'state':'to upgrade'}, context=context)
ids = map(lambda x: x.id, todo)
self.write(cr, uid, ids, {'state':'to upgrade'}, context=context)
self.button_install(cr, uid, ids, context=context)
return True
def button_upgrade_cancel(self, cr, uid, ids, context={}):