diff --git a/addons/snailmail/models/snailmail_letter.py b/addons/snailmail/models/snailmail_letter.py index ebfe27f09fa8d9dde1891e6a101711c708fe4b04..3d98027c0d501d79e724b897106187ba25220b1c 100644 --- a/addons/snailmail/models/snailmail_letter.py +++ b/addons/snailmail/models/snailmail_letter.py @@ -148,7 +148,7 @@ class SnailmailLetter(models.Model): paperformat = report.get_paperformat() if (paperformat.format == 'custom' and paperformat.page_width != 210 and paperformat.page_height != 297) or paperformat.format != 'A4': raise UserError(_("Please use an A4 Paper format.")) - pdf_bin, unused_filetype = report.with_context(snailmail_layout=not self.cover, lang='en_US').render_qweb_pdf(self.res_id) + pdf_bin, unused_filetype = report.with_context(snailmail_layout=not self.cover, lang='en_US')._render_qweb_pdf(self.res_id) if self.cover: pdf_bin = self._append_cover_page(pdf_bin) attachment = self.env['ir.attachment'].create({