mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-08 04:53:26 +00:00
fix: Do not validate while creating accounting dimension
(cherry picked from commit 9bb132fdd3)
This commit is contained in:
committed by
mergify-bot
parent
d99cc8b05a
commit
153b41a269
@@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user