From 2ba5fbfb892018a151eb37049eeaf1b16107fbf4 Mon Sep 17 00:00:00 2001 From: "NCH (Open ERP)" <> Date: Fri, 18 Dec 2009 15:55:13 +0530 Subject: [PATCH] [FIX] crm: after upgrade module, base setup wizard called, configuration wizard is crash bzr revid: hmo@tinyerp.com-20091218102513-1benptetg7q2x4qu --- addons/crm/crm_calendar.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_calendar.py b/addons/crm/crm_calendar.py index 4770216a439..2714306fde8 100644 --- a/addons/crm/crm_calendar.py +++ b/addons/crm/crm_calendar.py @@ -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() \ No newline at end of file +virtual_wizard()