Commit dfc45975 authored by Antoine Bernard's avatar Antoine Bernard

[trez] escape forward slash dans object d'une facture

parent c1c55e64
......@@ -2068,7 +2068,7 @@ def render_tex(data, template, supreme = False):
file = template.rsplit('/', 1)[-1].rsplit('.', 1)[0]
path = template.rsplit('/', 1)[0]
filename = [, path, data["id_facture"], data["objet"] ]
filename = "_".join([unicode(x).upper() for x in filename]).replace(" ","_").replace('"', "").replace("'", "") + ".pdf"
filename = "_".join([unicode(x).upper() for x in filename]).replace(" ","_").replace('"', "").replace("'", "").replace("/","_") + ".pdf"
body = render_to_string(template, data).encode("utf-8")
except TemplateDoesNotExist:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment