From 1f6470dfb37cd72f07025a973bc93a4c3a2584d5 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Wed, 3 Feb 2010 17:09:48 +0530 Subject: [PATCH] [FIX]: make wizard working for all models related to the CRM leads, oppurtunity bzr revid: mga@tinyerp.com-20100203113948-xzfo7doiz96w19wp --- addons/crm/wizard/wizard_crm_new_send_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm/wizard/wizard_crm_new_send_email.py b/addons/crm/wizard/wizard_crm_new_send_email.py index 0a4780ba692..c37dd365a64 100644 --- a/addons/crm/wizard/wizard_crm_new_send_email.py +++ b/addons/crm/wizard/wizard_crm_new_send_email.py @@ -112,7 +112,7 @@ def _get_info(self, cr, uid, data, context): return {} pool = pooler.get_pool(cr.dbname) - case = pool.get('crm.lead').browse(cr, uid, data['id']) + case = pool.get(data.get('model')).browse(cr, uid, data['id']) if not case.user_id: raise wizard.except_wizard(_('Error'),_('You must define a responsible user for this case in order to use this action!'))