From 839de69b08687ab46c7810fac30920120bb229d9 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Wed, 3 Jun 2020 09:39:04 -0300 Subject: [PATCH] [12.0][MIG][FIX] PEP8. --- l10n_br_account_payment_cobranca/models/account_invoice.py | 2 +- l10n_br_account_payment_cobranca/models/l10n_br_cnab.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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))