[FIX] l10n_fr_fec: fix null values in aml balance

The aml.balance in the sql request is null, so the string encoding
fails with an error. This is a quick fix because the customer needs
this report for tomorrow, but a proper fix is required !
This commit is contained in:
David Monjoie
2016-07-26 17:57:21 +02:00
parent a3fe9eb440
commit 92c716229a
+1 -1
View File
@@ -197,7 +197,7 @@ class AccountFrFec(models.TransientModel):
if unaffected_earnings_account:
unaffected_earnings_results[4] = unaffected_earnings_account.code
unaffected_earnings_results[5] = unaffected_earnings_account.name
w.writerow([s.encode("utf-8") for s in unaffected_earnings_results])
w.writerow([(s if s else '0,00').encode("utf-8") for s in unaffected_earnings_results])
# LINES
sql_query = '''