fix: do not allow "Finance Book" in Accounting Dimensions
(cherry picked from commit a44be73a98)
Co-authored-by: ljain112 <ljain112@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@ class AccountingDimension(Document):
|
||||
"Accounting Dimension Detail",
|
||||
"Company",
|
||||
"Account",
|
||||
"Finance Book",
|
||||
):
|
||||
msg = _("Not allowed to create accounting dimension for {0}").format(self.document_type)
|
||||
frappe.throw(msg)
|
||||
|
||||
Reference in New Issue
Block a user