summaryrefslogtreecommitdiff
path: root/bin/addons/base/module
diff options
context:
space:
mode:
authorChristophe Simonis <chs@tinyerp.com>2010-01-12 13:06:54 +0100
committerChristophe Simonis <chs@tinyerp.com>2010-01-12 13:06:54 +0100
commita67e67d07e479fb6f14516def7100f931a3bf3f3 (patch)
treeffddca03321d44a2f70bc313adaf923af00bc915 /bin/addons/base/module
parenta0be2f8e46a52320096255092dbceb06a4ee555e (diff)
parentcf282de4dd5daae80545902ee78ec02e9d33639c (diff)
[MERGE]
bzr revid: chs@tinyerp.com-20100112120654-18ovzwjlu9dto1ct
Diffstat (limited to 'bin/addons/base/module')
-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': {