From e846176dfab08134de5727afee1dc7ec81f8f508 Mon Sep 17 00:00:00 2001 From: "Jalpesh Patel (OpenERP)" Date: Mon, 8 Oct 2012 12:47:31 +0530 Subject: [PATCH] [IMP]default_get method in mail_compose_message bzr revid: pja@tinyerp.com-20121008071731-ra4p1a2s5aiu4v4f --- addons/mail/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 87050ebb771..d4dcafeb038 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -82,7 +82,7 @@ class mail_compose_message(osv.TransientModel): vals = self.get_record_data(cr, uid, model, res_id, context=context) elif composition_mode == 'mass_mail' and model and active_ids: if context.get('default_template_id'): - vals = email_template_obj.generate_email(cr, uid, context.get('default_template_id'), res_id, context=context) + 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, 'content_subtype': 'html'}