|
|
@ -32,8 +32,8 @@ class DonationTaxReceipt(models.Model): |
|
|
|
html_content_print=html_content_print.replace('{{date}}',today.strftime("%d %B %Y")) |
|
|
|
html_content_print=html_content_print.replace('{{donor_id}}',str(self.partner_id.donor_id)) |
|
|
|
html_content_print=html_content_print.replace('{{fiscalyear}}',str(int(today.strftime("%Y"))-1)) |
|
|
|
html_content_print=html_content_print.replace('{{amount}}',str(res.amount)) |
|
|
|
html_content_print=html_content_print.replace('{{amountstr}}',num2words(float(res.amount),lang="fr",to="currency")) |
|
|
|
html_content_print=html_content_print.replace('{{amount}}',str(round(res.amount,0))) |
|
|
|
html_content_print=html_content_print.replace('{{amountstr}}',num2words(round(float(res.amount),0),lang="fr",to="currency")) |
|
|
|
|
|
|
|
res.html_content_print=html_content_print |
|
|
|
res.template_rf_id=template_rf.id |
|
|
|