mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Fix wrong template used for invoices sent by email
This commit is contained in:
parent
94d9efcc0b
commit
e1d6835f25
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ def send_mail_invoice(invoice):
|
|||
"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")
|
||||
|
||||
ctx = {
|
||||
|
|
Loading…
Reference in a new issue