diff options
| author | ced <> | 2007-08-01 14:03:37 +0000 |
|---|---|---|
| committer | ced <> | 2007-08-01 14:03:37 +0000 |
| commit | efdf54b283301468e4ba997a7400fa08215495d3 (patch) | |
| tree | 7e785e284c265cdc1cce07f1a98ec6a994d1c272 /bin/addons/base/module/wizard/wizard_module_upgrade.py | |
| parent | b019eb7990e7becce42d4d282dbde89dce8bc308 (diff) | |
base: add information on module to download when upgrade modules
bzr revid: ced-73cc0c8567285f1a1a2f4b2e86b7329d5646cbf6
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_module_upgrade.py')
| -rw-r--r-- | bin/addons/base/module/wizard/wizard_module_upgrade.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/addons/base/module/wizard/wizard_module_upgrade.py b/bin/addons/base/module/wizard/wizard_module_upgrade.py index 2fa41865d4c..b7ebc8e57b6 100644 --- a/bin/addons/base/module/wizard/wizard_module_upgrade.py +++ b/bin/addons/base/module/wizard/wizard_module_upgrade.py @@ -46,11 +46,16 @@ view_form = """<?xml version="1.0"?> <label align="0.0" string="Note that this operation my take a few minutes." colspan="4"/> <separator string="Modules to update"/> <field name="module_info" nolabel="1" colspan="4"/> + <separator string="Modules to download"/> + <field name="module_download" nolabel="1" colspan="4"/> </group> </form>""" view_field = { - "module_info": {'type':'text', 'string':'Modules', 'readonly':True} + "module_info": {'type': 'text', 'string': 'Modules to update', + 'readonly': True}, + "module_download": {'type': 'text', 'string': 'Modules to download', + 'readonly': True}, } class wizard_info_get(wizard.interface): @@ -59,8 +64,10 @@ class wizard_info_get(wizard.interface): mod_obj = pool.get('ir.module.module') ids = mod_obj.search(cr, uid, [ ('state', 'in', ['to upgrade', 'to remove', 'to install'])]) - res = pool.get('ir.module.module').read(cr, uid, ids, ['name','state'], context) - return {'module_info':'\n'.join(map(lambda x: x['name']+' : '+x['state'], res))} + res = mod_obj.read(cr, uid, ids, ['name','state'], context) + url = mod_obj.download(cr, uid, ids, download=False, context=context) + return {'module_info': '\n'.join(map(lambda x: x['name']+' : '+x['state'], res)), + 'module_download': '\n'.join(url)} def _upgrade_module(self, cr, uid, data, context): pool=pooler.get_pool(cr.dbname) |
