diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index c45a18b7ddc..60e2f447c0d 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -288,38 +288,6 @@ class crm_lead(crm_case, osv.osv): } return value - def action_send_email(self, cr, uid, ids, context=None): - """ - Open Send email wizard. - """ - if context is None: - context = {} - for data in self.browse(cr, uid ,ids, context): - context.update({ - 'mail':'new', - 'default_name': data.name, - 'default_email_to': data.email_from, - 'default_email_from': data.user_id and data.user_id.address_id and data.user_id.address_id.email, - 'default_description': '\n' + (tools.ustr(data.user_id.signature or '')), - 'default_model': context.get('model',''), - 'default_email_cc': tools.ustr(data.email_cc or ''), - 'default_res_id': context.get('rec_id',0) - }) - if hasattr(data, 'section_id'): - context.update({'default_reply_to': data.section_id and data.section_id.reply_to or False}) - - result = { - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'email.message.wizard_send', - 'view_id': False, - 'context': context, - 'type': 'ir.actions.act_window', - 'target': 'new', - 'nodestroy': True - } - return result - def write(self, cr, uid, ids, vals, context=None): if not context: context = {} diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index a7479b8cdef..019e74f19d1 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -170,7 +170,7 @@