[patch] ignore validations while creating custom fields for gst via patch

This commit is contained in:
Rushabh Mehta 2018-04-26 10:10:03 +05:30
parent 30c267bec6
commit 369afce43c
2 changed files with 3 additions and 2 deletions

View File

@ -6,4 +6,5 @@ import frappe
def execute():
frappe.reload_doc("agriculture", "doctype", "land_unit")
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")

View File

@ -183,11 +183,11 @@ def make_custom_fields():
'Purchase Invoice Item': [hsn_sac_field],
'Employee': [
dict(fieldname='ifsc_code', label='IFSC Code',
fieldtype='Data', insert_after='bank_ac_no', print_hide=1,
fieldtype='Data', insert_after='bank_ac_no', print_hide=1,
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():
docs = [