fix: patch

This commit is contained in:
Rucha Mahabal 2020-11-30 17:51:56 +05:30
parent b5b8c5474a
commit f6756838ba
2 changed files with 6 additions and 1 deletions

View File

@ -148,6 +148,7 @@ def create_healthcare_service_items():
item.item_name = 'Consulting Charges'
item.item_group = 'Services'
item.is_stock_item = 0
item.stock_uom = 'Nos'
item.save()
return item.name

View File

@ -3,7 +3,11 @@ import frappe
from erpnext.healthcare.setup import setup_patient_history_settings
def execute():
if 'Healthcare' not in frappe.get_active_domains():
if "Healthcare" not in frappe.get_active_domains():
return
frappe.reload_doc("healthcare", "doctype", "Patient History Settings")
frappe.reload_doc("healthcare", "doctype", "Patient History Standard Document Type")
frappe.reload_doc("healthcare", "doctype", "Patient History Custom Document Type")
setup_patient_history_settings()