summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/wizard/wizard_update_module.py
diff options
context:
space:
mode:
authorRGA(OpenERP) <>2010-06-02 18:59:23 +0530
committerJay (Open ERP) <jvo@tinyerp.com>2010-06-02 18:59:23 +0530
commitb217e30a724d8481dd1dbc9dadf641bbad17b6b9 (patch)
tree6f83175999bee22982ffd50e1c8a55663d147bb9 /bin/addons/base/module/wizard/wizard_update_module.py
parent2ffce859ad6caed73d26bccaf49d618a20c77d68 (diff)
[IMP] Update module list wizard should not miss search view of Modules
bzr revid: jvo@tinyerp.com-20100602132923-het66f9fgf7bimqa
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_update_module.py')
-rw-r--r--bin/addons/base/module/wizard/wizard_update_module.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/addons/base/module/wizard/wizard_update_module.py b/bin/addons/base/module/wizard/wizard_update_module.py
index c4f794a87de..22e52bb6d6d 100644
--- a/bin/addons/base/module/wizard/wizard_update_module.py
+++ b/bin/addons/base/module/wizard/wizard_update_module.py
@@ -50,7 +50,8 @@ class wizard_update_module(wizard.interface):
return {'update': update, 'add': add}
def _action_module_open(self, cr, uid, data, context):
- return {
+
+ res = {
'domain': str([]),
'name': 'Module List',
'view_type': 'form',
@@ -59,8 +60,11 @@ class wizard_update_module(wizard.interface):
'view_id': False,
'type': 'ir.actions.act_window'
}
-
-
+
+ search_view_id = pooler.get_pool(cr.dbname).get('ir.ui.view').search(cr, uid, [('name','=','ir.module.module.list.select')], context=context)
+ if search_view_id:
+ res.update({'search_view_id' : search_view_id[0]})
+ return res
states = {
'init': {