Commit 80b2901e authored by Remi Oudin's avatar Remi Oudin
Browse files

[factures] Échappement de underscores

Dans le code de désignation d'un objet, on échappe les caractères
pouvant causer une erreur à la compilation
parent 11e84bd7
......@@ -97,6 +97,9 @@ class FactureView(PDFView):
total = 0
for i in range(0,len(f['article'])):
f['article'][i].value['ptotal'] = int(f['article'][i]['nombre']) * float(f['article'][i]['pu'])
tmp = f['article'][i].value['code']
f['article'][i].value['code'] = tmp.replace("_", "\_")
del tmp
total += f['article'][i].value['ptotal']
if f.get('recuPaiement', []):
paid = total
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