[minor] save the system settings document
This commit is contained in:
parent
ce7087f08a
commit
4b299ba009
@ -404,4 +404,5 @@ erpnext.patches.v8_0.delete_bin_indexes
|
||||
erpnext.patches.v8_0.move_account_head_from_account_to_warehouse_for_inventory
|
||||
erpnext.patches.v8_0.change_in_words_varchar_length
|
||||
erpnext.patches.v8_0.create_domain_docs #16-05-2017
|
||||
erpnext.patches.v8_0.update_sales_cost_in_project
|
||||
erpnext.patches.v8_0.update_sales_cost_in_project
|
||||
erpnext.patches.v8_0.save_system_settings
|
15
erpnext/patches/v8_0/save_system_settings.py
Normal file
15
erpnext/patches/v8_0/save_system_settings.py
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2017, Frappe and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
"""
|
||||
save system settings document
|
||||
"""
|
||||
|
||||
frappe.reload_doc("core", "doctype", "system_settings")
|
||||
doc = frappe.get_doc("System Settings", "System Settings")
|
||||
doc.flags.ignore_mandatory = True
|
||||
doc.save(ignore_permissions=True)
|
Loading…
x
Reference in New Issue
Block a user