[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:
@@ -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 = '''
|
||||
|
||||
Reference in New Issue
Block a user