summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_template.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-09-28 16:28:31 +0200
committerChristophe Simonis <chs@odoo.com>2016-09-28 16:28:31 +0200
commita7ba6cde9c7951fa54cf031deb3bebc8d511bf95 (patch)
tree89e2e1f62bc3973dde713099af357a33264256dd /addons/mail/models/mail_template.py
parentd04a42022b2338d529d245080fa506f72cdc8daa (diff)
parent7134affc89c3ad04b365e64b49b911c8bc3f433e (diff)
[MERGE] forward port branch saas-12 up to 7134aff
Diffstat (limited to 'addons/mail/models/mail_template.py')
-rw-r--r--addons/mail/models/mail_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_template.py b/addons/mail/models/mail_template.py
index 8508fa9f250..d87cad5fec7 100644
--- a/addons/mail/models/mail_template.py
+++ b/addons/mail/models/mail_template.py
@@ -488,7 +488,7 @@ class MailTemplate(models.Model):
)
# Add report in attachments: generate once for all template_res_ids
- if template.report_template and not 'report_template_in_attachment' in self.env.context:
+ if template.report_template:
for res_id in template_res_ids:
attachments = []
report_name = self.render_template(template.report_name, template.model, res_id)