fix: do not allow "Finance Book" in Accounting Dimensions

This commit is contained in:
ljain112
2025-02-04 12:24:15 +05:30
parent 9a34c4c1ec
commit a44be73a98

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)