[FIX] email_template: report_name must be rendered
bzr revid: chs@openerp.com-20120316091517-e2hc8ydzd3vnnv3j
This commit is contained in:
parent
f6baede827
commit
b7bad83c21
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue