diff --git a/l10n_br_account_payment_cobranca/models/account_invoice.py b/l10n_br_account_payment_cobranca/models/account_invoice.py index 68b0b90b3bdb..f67a80c673d9 100644 --- a/l10n_br_account_payment_cobranca/models/account_invoice.py +++ b/l10n_br_account_payment_cobranca/models/account_invoice.py @@ -198,7 +198,7 @@ def create_bank_api_operation( self, request, operation_type=False, environment=False ): # 'not request' não é válido para o propósito - if request == False: + if request: return operation_model = self.env["bank.api.operation"] diff --git a/l10n_br_account_payment_cobranca/models/l10n_br_cnab.py b/l10n_br_account_payment_cobranca/models/l10n_br_cnab.py index d5a2cdecb70b..a6821faf26bf 100644 --- a/l10n_br_account_payment_cobranca/models/l10n_br_cnab.py +++ b/l10n_br_account_payment_cobranca/models/l10n_br_cnab.py @@ -429,9 +429,9 @@ def _lote_400(self, evento, lote_id): "name": str(evento.nosso_numero) + " - Tarifa", "credit": 0, "debit": float(evento.tarifa_cobranca), - "account_id": invoice.payment_mode_id.\ - default_tax_account_id.id - or invoice.account_id.id, + "account_id": + invoice.payment_mode_id.default_tax_account_id.id + or invoice.account_id.id, } ) line_values.append((0, 0, line_dict_tarifa))