[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
This commit is contained in:
Denis Ledoux
2013-11-18 16:01:29 +01:00
parent 33ce0e73db
commit 4dfe327be5
+1 -1
View File
@@ -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: