summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/wizard/wizard_module_upgrade.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_module_upgrade.py')
-rw-r--r--bin/addons/base/module/wizard/wizard_module_upgrade.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/bin/addons/base/module/wizard/wizard_module_upgrade.py b/bin/addons/base/module/wizard/wizard_module_upgrade.py
index 051d6ca00c4..40d100fe2e0 100644
--- a/bin/addons/base/module/wizard/wizard_module_upgrade.py
+++ b/bin/addons/base/module/wizard/wizard_module_upgrade.py
@@ -92,13 +92,8 @@ class wizard_info_get(wizard.interface):
return {}
def _config(self, cr, uid, data, context=None):
- return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'ir.actions.configuration.wizard',
- 'type': 'ir.actions.act_window',
- 'target':'new',
- }
+ return pooler.get_pool(cr.dbname).get('res.config')\
+ .next(cr, uid, [], context=context)
states = {
'init': {
@@ -183,13 +178,8 @@ class wizard_info_get_simple(wizard.interface):
return {}
def _config(self, cr, uid, data, context=None):
- return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'ir.actions.configuration.wizard',
- 'type': 'ir.actions.act_window',
- 'target':'new',
- }
+ return pooler.get_pool(cr.dbname).get('res.config')\
+ .next(cr, uid, [], context=context)
states = {
'init': {