From 50a7718e45014e5db1f2d304cc3b33a35c0baf8b Mon Sep 17 00:00:00 2001 From: "Jalpesh Patel (OpenERP)" Date: Fri, 5 Oct 2012 18:48:04 +0530 Subject: [PATCH] [IMP]send mail (automated purchase order notification mail) bzr revid: pja@tinyerp.com-20121005131804-qliwjans60m08lhx --- addons/mail/wizard/mail_compose_message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index fbadf76f2fb..b0e2e89d795 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -81,7 +81,8 @@ class mail_compose_message(osv.TransientModel): elif composition_mode == 'comment' and model and res_id: vals = self.get_record_data(cr, uid, model, res_id, context=context) elif composition_mode == 'mass_mail' and model and active_ids: - vals = {'model': model, 'res_id': res_id, 'content_subtype': 'html'} + vals = self.pool.get('email.template').generate_email(cr, uid, context.get('default_template_id'), res_id, context=context) + vals.update({'content_subtype': 'html'}) else: vals = {'model': model, 'res_id': res_id} if composition_mode: