[patch] ignore validations while creating custom fields for gst via patch
This commit is contained in:
parent
30c267bec6
commit
369afce43c
@ -6,4 +6,5 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("agriculture", "doctype", "land_unit")
|
frappe.reload_doc("agriculture", "doctype", "land_unit")
|
||||||
for dt in ("Account", "Cost Center", "File", "Employee", "Land Unit", "Task", "Customer Group", "Sales Person", "Territory"):
|
for dt in ("Account", "Cost Center", "File", "Employee", "Land Unit", "Task", "Customer Group", "Sales Person", "Territory"):
|
||||||
|
frappe.reload_doctype(dt)
|
||||||
frappe.get_doc("DocType", dt).run_module_method("on_doctype_update")
|
frappe.get_doc("DocType", dt).run_module_method("on_doctype_update")
|
||||||
@ -187,7 +187,7 @@ def make_custom_fields():
|
|||||||
depends_on='eval:doc.salary_mode == "Bank"') ]
|
depends_on='eval:doc.salary_mode == "Bank"') ]
|
||||||
}
|
}
|
||||||
|
|
||||||
create_custom_fields(custom_fields)
|
create_custom_fields(custom_fields, ignore_validate = frappe.flags.in_patch)
|
||||||
|
|
||||||
def make_fixtures():
|
def make_fixtures():
|
||||||
docs = [
|
docs = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user