From de2313623678f26318972dfa1fcfc4f0ce9833bf Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 19 Jul 2023 12:40:59 +0200 Subject: [PATCH] Revert "[FIX] account_banking_sepa_credit_transfer: required bank account UserError" This reverts commit e1a8434eccc88caa7ffd705869ae7b641b361c93. --- .../models/account_payment_order.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/account_banking_sepa_credit_transfer/models/account_payment_order.py b/account_banking_sepa_credit_transfer/models/account_payment_order.py index 2ffd1ac1e..b383cf9f4 100644 --- a/account_banking_sepa_credit_transfer/models/account_payment_order.py +++ b/account_banking_sepa_credit_transfer/models/account_payment_order.py @@ -174,10 +174,7 @@ class AccountPaymentOrder(models.Model): instructed_amount.text = "%.2f" % line.amount_currency amount_control_sum_a += line.amount_currency amount_control_sum_b += line.amount_currency - if ( - self.payment_method_id.bank_account_required - and not line.partner_bank_id - ): + if not line.partner_bank_id: raise UserError( _( "Bank account is missing on the bank payment line "