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