[FIX] email_template: report_name must be rendered

bzr revid: chs@openerp.com-20120316091517-e2hc8ydzd3vnnv3j
This commit is contained in:
Christophe Simonis 2012-03-16 10:15:17 +01:00
parent f6baede827
commit b7bad83c21
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class email_template(osv.osv):
attachments = {}
# Add report as a Document
if template.report_template:
report_name = template.report_name
report_name = self.render_template(cr, uid, template.report_name, template.model, res_id, context=context)
report_service = 'report.' + report_xml_pool.browse(cr, uid, template.report_template.id, context).report_name
# Ensure report is rendered using template's language
ctx = context.copy()