From 947047dea0bfabc8de09e9ea5a3bbc8d5896edaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sat, 26 Sep 2015 16:28:11 +0200 Subject: [PATCH] Pas de commentaire => commentaire vide, pas None --- gestion/gest_crans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 8be36b7e..b83b0f15 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1089,10 +1089,10 @@ def set_solde(clas): annul, comment = dialog(arg) if not annul: - if comment[0]: + if comment: comment = comment[0] else: - comment = None + comment = '' f = Facture(clas) f.ajoute({'nombre': 1, 'code':'SOLDE', 'designation': "Modification du solde par un imprimeur. Moyen de paiement: %s, remarque: %s" % (_mode, comment.decode(config.in_encoding)), 'pu': _montant})