fix: Do not validate while creating accounting dimension

This commit is contained in:
Deepesh Garg 2022-04-22 13:39:43 +05:30
parent 5411e69553
commit 9bb132fdd3

View File

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