Skip to content

Commit

Permalink
[FIX] account_banking_sepa_credit_transfer: required bank account Use…
Browse files Browse the repository at this point in the history
…rError
  • Loading branch information
JaumeBforgeFlow authored and GuillemCForgeFlow committed Aug 3, 2023
1 parent 21a1a1a commit d80858d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ def generate_payment_file(self): # noqa: C901
instructed_amount.text = "%.2f" % line.amount_currency
amount_control_sum_a += line.amount_currency
amount_control_sum_b += line.amount_currency
if not line.partner_bank_id:
if (
self.payment_method_id.bank_account_required
and not line.partner_bank_id
):
raise UserError(
_(
"Bank account is missing on the bank payment line "
Expand Down

0 comments on commit d80858d

Please sign in to comment.