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

Merge branch 'missing_invoice_template' into 'dev'

Fix invoice template issues

See merge request re2o/re2o!499
This commit is contained in:
chirac 2020-04-18 22:53:32 +02:00
commit 4017850e7e
2 changed files with 3 additions and 1 deletions

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 = {

View file

@ -745,6 +745,7 @@ interactive_guide() {
install_webserver "$web_serveur" "$is_tls" "$url_server" install_webserver "$web_serveur" "$is_tls" "$url_server"
copy_templates_files
########################### ###########################