Browse Source

[FIX] emc_taxshelter_report: send certificates

pull/76/head
Manuel Claeys Bouuaert 5 years ago
parent
commit
a6dc410b3e
  1. 2
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

2
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -256,7 +256,7 @@ class TaxShelterCertificate(models.Model):
def generate_pdf_report(self, report_type):
report, name = REPORT_DIC[report_type]
report = self.env.ref(report).render_qweb_pdf(self)
report = self.env.ref(report).render_qweb_pdf(self.id)[0]
report = base64.b64encode(report)
report_name = (
self.partner_id.name + " " + name + " " + self.declaration_id.name + ".pdf"

Loading…
Cancel
Save