[FIX] crm: after upgrade module, base setup wizard called, configuration wizard is crash
bzr revid: hmo@tinyerp.com-20091218102513-1benptetg7q2x4qu
This commit is contained in:
committed by
Harry (Open ERP)
parent
4e84477b83
commit
2ba5fbfb89
@@ -477,7 +477,12 @@ virtual_report_spool()
|
||||
class virtual_wizard(web_services.wizard):
|
||||
def exp_execute(self, db, uid, wiz_id, datas, action='init', context=None):
|
||||
if wiz_id not in self.wiz_uid:
|
||||
super(virtual_wizard,self).exp_create(db, uid, 'module.upgrade', datas)
|
||||
# TODO : To Check why need it
|
||||
if wiz_id == 1:
|
||||
wiz_name ='base_setup.base_setup'
|
||||
if wiz_id == 2:
|
||||
wiz_name ='module.upgrade'
|
||||
super(virtual_wizard,self).exp_create(db, uid, wiz_name, datas)
|
||||
new_ids = []
|
||||
if 'id' in datas:
|
||||
datas['id'] = caldevIDs2readIDs(datas['id'])
|
||||
@@ -487,4 +492,4 @@ class virtual_wizard(web_services.wizard):
|
||||
res=super(virtual_wizard, self).exp_execute(db, uid, wiz_id, datas, action, context)
|
||||
return res
|
||||
|
||||
virtual_wizard()
|
||||
virtual_wizard()
|
||||
|
||||
Reference in New Issue
Block a user