[FIX] account_banking_pain_base: flake8

This commit is contained in:
Pedro M. Baeza
2019-03-26 12:17:00 +01:00
committed by Pedro M. Baeza
parent 9d6e99ff87
commit ba33c48069
2 changed files with 4 additions and 2 deletions

View File

@@ -774,7 +774,7 @@ msgid "The '%s' is empty or 0. It should have a non-null value."
msgstr ""
#. module: account_banking_pain_base
#: code:addons/account_banking_pain_base/models/res_bank.py:27
#: code:addons/account_banking_pain_base/models/res_bank.py:29
#, python-format
msgid "The following Bank Identifier Codes (BIC) do not respect the SEPA pattern:\n"
"{bic_list}\n"

View File

@@ -22,7 +22,9 @@ class ResBank(models.Model):
:raise: ValidationError if the BIC doesn't respect the regex of the
SEPA pain schemas.
"""
invalid_banks = self.filtered(lambda r: r.bic and not BIC_REGEX.match(r.bic))
invalid_banks = self.filtered(
lambda r: r.bic and not BIC_REGEX.match(r.bic)
)
if invalid_banks:
raise ValidationError(_(
"The following Bank Identifier Codes (BIC) do not respect "