Skip to content

Commit

Permalink
[12.0][MIG][FIX] PEP8.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcosta committed Jun 3, 2020
1 parent c4439b3 commit 839de69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion l10n_br_account_payment_cobranca/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions l10n_br_account_payment_cobranca/models/l10n_br_cnab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 839de69

Please sign in to comment.