From 4dfe327be528b158bb580b21da1b93766aa6ef98 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 18 Nov 2013 16:01:29 +0100 Subject: [PATCH] [FIX]email_template: fixed call to render_template_batch using a list of ids instead of only one id. bzr revid: dle@openerp.com-20131118150129-log6925i4kc3dkxq --- addons/email_template/email_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/email_template/email_template.py b/addons/email_template/email_template.py index ed35349f420..f09fb41b8c4 100644 --- a/addons/email_template/email_template.py +++ b/addons/email_template/email_template.py @@ -378,7 +378,7 @@ class email_template(osv.osv): # Ensure report is rendered using template's language ctx = context.copy() if template.lang: - ctx['lang'] = self.render_template_batch(cr, uid, template.lang, template.model, res_id, context) # take 0 ? + ctx['lang'] = self.render_template_batch(cr, uid, template.lang, template.model, [res_id], context) # take 0 ? result, format = openerp.report.render_report(cr, uid, [res_id], report_service, {'model': template.model}, ctx) result = base64.b64encode(result) if not report_name: