From 8ee0c40be8a5fbf787175158440d24d44c5696f4 Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Thu, 29 Oct 2009 12:29:11 +0530 Subject: [PATCH] [IMP]:CRM: Improvement in mail send wizard for user email address bzr revid: rpa@tinyerp.com-20091029065911-jxxa7fl5ybz13mbt --- addons/crm/wizard/wizard_crm_new_send_email.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/crm/wizard/wizard_crm_new_send_email.py b/addons/crm/wizard/wizard_crm_new_send_email.py index 3b08189d90e..f83296690aa 100644 --- a/addons/crm/wizard/wizard_crm_new_send_email.py +++ b/addons/crm/wizard/wizard_crm_new_send_email.py @@ -76,6 +76,8 @@ def _mass_mail_send(self, cr, uid, data, context): emails = [data['form']['to']] + (data['form']['cc'] or '').split(',') emails = filter(None, emails) body = data['form']['text'] + if not case.user_id.address_id.email: + raise wizard.except_wizard(_('Warning!'),("Please specify user's email address")) if case.user_id.signature: body += '\n\n%s' % (case.user_id.signature) flag = tools.email_send(