From 2bb673e69f4ae6bb93365441c0fcb30363093b38 Mon Sep 17 00:00:00 2001 From: Danimar Ribeiro Date: Mon, 6 Feb 2023 18:37:28 -0300 Subject: [PATCH] Update account_journal.py --- l10n_br_banco_inter/models/account_journal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l10n_br_banco_inter/models/account_journal.py b/l10n_br_banco_inter/models/account_journal.py index e2d3edb2b..37fc22f55 100644 --- a/l10n_br_banco_inter/models/account_journal.py +++ b/l10n_br_banco_inter/models/account_journal.py @@ -48,8 +48,8 @@ def sync_bank_statement_online_inter(self, start=None, end=None): 'statement_id': statement.id, 'date': titulo["dataEntrada"], 'name': titulo['titulo'], - 'ref': titulo['descricao'], + 'ref': titulo.get('descricao'), 'amount': float(titulo['valor']) if titulo["tipoOperacao"] == "C" else (float(titulo['valor']) * -1.0), }) - return statement.action_bank_reconcile_bank_statements() \ No newline at end of file + return statement.action_bank_reconcile_bank_statements()