8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-10 20:06:25 +00:00

Fix wrong template used for invoices sent by email

This commit is contained in:
Jean-Romain Garnier 2020-04-18 20:09:32 +00:00 committed by Gabriel Detraz
parent b5c2b4208b
commit ca3b3af1c2

View file

@ -73,7 +73,8 @@ def send_mail_invoice(invoice):
"tpl_path": os.path.join(settings.BASE_DIR, LOGO_PATH), "tpl_path": os.path.join(settings.BASE_DIR, LOGO_PATH),
} }
pdf = create_pdf("cotisations/factures.tex", ctx) template = CotisationsOption.get_cached_value("invoice_template").template.name.split("/")[-1]
pdf = create_pdf(template, ctx)
template = get_template("cotisations/email_invoice") template = get_template("cotisations/email_invoice")
ctx = { ctx = {