diff --git a/cotisations/utils.py b/cotisations/utils.py index facc1197..95672dd4 100644 --- a/cotisations/utils.py +++ b/cotisations/utils.py @@ -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 = { diff --git a/install_re2o.sh b/install_re2o.sh index 6cc9a2fb..dcc8d971 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -745,6 +745,7 @@ interactive_guide() { install_webserver "$web_serveur" "$is_tls" "$url_server" + copy_templates_files ###########################