From 205037fd6b8808df2dbd80410e44c8e430491739 Mon Sep 17 00:00:00 2001 From: Corentin Forler Date: Fri, 18 Jul 2025 14:04:41 +0200 Subject: [PATCH] fix: Add title to payment schedule error message --- erpnext/controllers/accounts_controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 5971af1bb89..9c4eddd247f 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -2656,7 +2656,10 @@ class AccountsController(TransactionBase): if li: duplicates = "
" + "
".join(li) - frappe.throw(_("Rows with duplicate due dates in other rows were found: {0}").format(duplicates)) + frappe.throw( + _("Rows with duplicate due dates in other rows were found: {0}").format(duplicates), + title=_("Payment Schedule"), + ) def validate_payment_schedule_amount(self): if (self.doctype == "Sales Invoice" and self.is_pos) or self.get("is_opening") == "Yes":