diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 487bc35524c..dc45b5d0aef 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -476,3 +476,4 @@ erpnext.patches.v9_2.remove_company_from_patient erpnext.patches.v9_2.set_item_name_in_production_order erpnext.patches.v10_0.update_lft_rgt_for_employee erpnext.patches.v9_2.rename_net_weight_in_item_master +erpnext.patches.v10_0.add_non_profit_domain \ No newline at end of file diff --git a/erpnext/patches/v10_0/add_non_profit_domain.py b/erpnext/patches/v10_0/add_non_profit_domain.py new file mode 100644 index 00000000000..52f6f6cc4bb --- /dev/null +++ b/erpnext/patches/v10_0/add_non_profit_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 = 'Non Profit' + if not frappe.db.exists('Domain', domain): + frappe.get_doc({ + 'doctype': 'Domain', + 'domain': domain + }).insert(ignore_permissions=True) \ No newline at end of file