[new] Non Profit Domain patch added
This commit is contained in:
parent
5ade836713
commit
debc93c58a
@ -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
|
14
erpnext/patches/v10_0/add_non_profit_domain.py
Normal file
14
erpnext/patches/v10_0/add_non_profit_domain.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user