diff options
| author | Harshad Modi <hmo@tinyerp.com> | 2008-06-21 09:54:30 +0000 |
|---|---|---|
| committer | Harshad Modi <hmo@tinyerp.com> | 2008-06-21 09:54:30 +0000 |
| commit | a00dea7af6cb1ab00f8b6ef67b2318c6a9c49dae (patch) | |
| tree | 103e8ca4ea177dde0ee29f65bbc531dce3bb6c6e /bin/addons/base/module/wizard/wizard_module_upgrade.py | |
| parent | cbcaddc5e3b15767e2a6d392c0be0165fe08a2d5 (diff) | |
imrovement on configuration wizard :
* change name of all configuration wizard
* imroovemnt on view
* put view_id on user configuration wizard's action
* put action on base setup and module upgrade wizard to call configuration wizard
* make new configuration wizard for install extra module on service profile
* make new configuration wizard for set extend group on admin user to set extendend view
bzr revid: hmo@tinyerp.com-a4b56d4283c1ab9cc0aa5162c9b5c269e4438e5b
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_module_upgrade.py')
| -rw-r--r-- | bin/addons/base/module/wizard/wizard_module_upgrade.py | 23 |
1 files changed, 20 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 683b9eff322..896555e4832 100644 --- a/bin/addons/base/module/wizard/wizard_module_upgrade.py +++ b/bin/addons/base/module/wizard/wizard_module_upgrade.py @@ -81,9 +81,18 @@ class wizard_info_get(wizard.interface): db, pool = pooler.restart_pool(cr.dbname, update_module=True) return {} + def _config(self, cr, uid, data, context=None): + return { + 'view_type': 'form', + "view_mode": 'form', + 'res_model': 'ir.module.module.configuration.wizard', + 'type': 'ir.actions.act_window', + 'target':'new', + } + states = { 'init': { - 'actions': [_get_install], + 'actions': [_get_install], 'result': {'type':'form', 'arch':view_form, 'fields': view_field, 'state':[ ('end', 'Cancel', 'gtk-cancel'), @@ -92,13 +101,21 @@ class wizard_info_get(wizard.interface): } }, 'start': { - 'actions': [_upgrade_module], + 'actions': [_upgrade_module], 'result': {'type':'form', 'arch':view_form_end, 'fields': {}, 'state':[ - ('end', 'Close', 'gtk-close', True) + ('end', 'Close', 'gtk-close', True), + ('config', 'Start configuration', 'gtk-ok', True) ] } }, + 'config':{ + 'result': { + 'type': 'action', + 'action': _config, + 'state': 'end', + }, + } } wizard_info_get('module.upgrade') |
