From 757c2f692b9a54dcff16a5b77e98f5b01ce1f043 Mon Sep 17 00:00:00 2001 From: Brown-Harry Boma Date: Wed, 25 Oct 2017 07:22:08 +0100 Subject: [PATCH] [Fix]Setup Wizard Errors (#11289) --- erpnext/setup/setup_wizard/healthcare.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/erpnext/setup/setup_wizard/healthcare.py b/erpnext/setup/setup_wizard/healthcare.py index ebc644e87b7..e8a44dc5fa5 100644 --- a/erpnext/setup/setup_wizard/healthcare.py +++ b/erpnext/setup/setup_wizard/healthcare.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals import frappe -from frappe.custom.doctype.custom_field.custom_field import create_custom_fields +from frappe.custom.doctype.custom_field.custom_field import create_custom_field from frappe import _ @@ -21,11 +21,13 @@ def make_custom_fields(): 'Sales Invoice': [ dict(fieldname='appointment', label='Patient Appointment', fieldtype='Link', options='Patient Appointment', - insert_after='customer') + insert_after='customer',print_hide=0) ] } - create_custom_fields(custom_fields) + for dt, data in custom_fields.iteritems(): + for df in data: + create_custom_field(dt, df) def create_medical_departments():