Merge PR #1117 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2023-07-19 10:42:07 +00:00

View File

@@ -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 "