Browse Source

Merge pull request #76 from coopiteasy/12.0-emc_taxshelter_report

[FIX] emc_taxshelter_report: send certificates
pull/77/head 12.0-2020-03-20.00
Houssine BAKKALI 5 years ago
committed by GitHub
parent
commit
d0fcac9e1f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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): def generate_pdf_report(self, report_type):
report, name = REPORT_DIC[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 = base64.b64encode(report)
report_name = ( report_name = (
self.partner_id.name + " " + name + " " + self.declaration_id.name + ".pdf" self.partner_id.name + " " + name + " " + self.declaration_id.name + ".pdf"

Loading…
Cancel
Save