[12.0-issue-183-base] [12.0] base_report_to_printer: Do no print e-mail attachment

This commit is contained in:
Raf Ven
2019-10-08 11:51:13 +02:00
committed by sergio-teruel
parent c15c830b0f
commit f36b9bf30b
11 changed files with 612 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import mail_template

View File

@@ -0,0 +1,10 @@
from odoo import models
class MailTemplate(models.Model):
_inherit = "mail.template"
def generate_email(self, res_ids, fields=None):
return super(MailTemplate, self.with_context(
must_skip_send_to_printer=True
)).generate_email(res_ids, fields=fields)