fix: Do not validate while creating accounting dimension

(cherry picked from commit 9bb132fdd3)
This commit is contained in:
Deepesh Garg
2022-04-22 13:39:43 +05:30
committed by mergify-bot
parent d99cc8b05a
commit 153b41a269

View File

@@ -99,7 +99,7 @@ def make_dimension_in_accounting_doctypes(doc, doclist=None):
if doctype == "Budget":
add_dimension_to_budget_doctype(df.copy(), doc)
else:
create_custom_field(doctype, df)
create_custom_field(doctype, df, ignore_validate=True)
count += 1
@@ -115,7 +115,7 @@ def add_dimension_to_budget_doctype(df, doc):
}
)
create_custom_field("Budget", df)
create_custom_field("Budget", df, ignore_validate=True)
property_setter = frappe.db.exists("Property Setter", "Budget-budget_against-options")