From e181dd4c24dfdec965b401b50b4af3e8378d5c98 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 9 Oct 2017 12:43:36 +0530 Subject: [PATCH] [patch] To add healthcare domain (#11105) --- erpnext/patches.txt | 1 + erpnext/patches/v9_0/add_healthcare_domain.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 erpnext/patches/v9_0/add_healthcare_domain.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 113c40212f8..0b9e8264ee7 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -449,3 +449,4 @@ erpnext.patches.v8_9.delete_gst_doctypes_for_outside_india_accounts erpnext.patches.v8_9.set_default_fields_in_variant_settings erpnext.patches.v8_9.update_billing_gstin_for_indian_account erpnext.patches.v9_0.fix_subscription_next_date +erpnext.patches.v9_0.add_healthcare_domain diff --git a/erpnext/patches/v9_0/add_healthcare_domain.py b/erpnext/patches/v9_0/add_healthcare_domain.py new file mode 100644 index 00000000000..45fceb126f7 --- /dev/null +++ b/erpnext/patches/v9_0/add_healthcare_domain.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017, Frappe and Contributors +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import frappe +from frappe import _ + +def execute(): + domain = _('Healthcare') + if not frappe.db.exists('Domain', domain): + frappe.get_doc({ + 'doctype': 'Domain', + 'domain': domain + }).insert(ignore_permissions=True) \ No newline at end of file