mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
@@ -174,7 +174,10 @@ 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 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 "
|
||||
|
||||
Reference in New Issue
Block a user