[FIX] upgrade a module now install the new dependencies
bzr revid: christophe@tinyerp.com-20081211145420-2dy5ym0mo8s0bsex
This commit is contained in:
parent
e85e69dffd
commit
5e510fc977
|
@ -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={}):
|
||||
|
|
Loading…
Reference in New Issue