fix: do not allow "Finance Book" in Accounting Dimensions (#45696)

This commit is contained in:
Smit Vora
2025-02-11 14:55:32 +05:30
committed by GitHub

View File

@@ -49,6 +49,7 @@ class AccountingDimension(Document):
"Accounting Dimension Detail", "Accounting Dimension Detail",
"Company", "Company",
"Account", "Account",
"Finance Book",
): ):
msg = _("Not allowed to create accounting dimension for {0}").format(self.document_type) msg = _("Not allowed to create accounting dimension for {0}").format(self.document_type)
frappe.throw(msg) frappe.throw(msg)