From 89625b6eef23495bff65ba66eaea38e5735137ed Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Fri, 21 Dec 2018 11:04:32 +0530 Subject: [PATCH] Rename learn to help --- erpnext/config/desktop.py | 4 ++-- erpnext/config/{learn.py => help.py} | 0 erpnext/patches/v11_0/rename_learn_to_help.py | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) rename erpnext/config/{learn.py => help.py} (100%) create mode 100644 erpnext/patches/v11_0/rename_learn_to_help.py diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py index 2f589ab682..f365914471 100644 --- a/erpnext/config/desktop.py +++ b/erpnext/config/desktop.py @@ -149,12 +149,12 @@ def get_data(): "hidden": 1 }, { - "module_name": "Learn", + "module_name": "Help", "color": "#FF888B", "icon": "octicon octicon-device-camera-video", "type": "module", "is_help": True, - "label": _("Learn"), + "label": _("Help"), "hidden": 1 }, { diff --git a/erpnext/config/learn.py b/erpnext/config/help.py similarity index 100% rename from erpnext/config/learn.py rename to erpnext/config/help.py diff --git a/erpnext/patches/v11_0/rename_learn_to_help.py b/erpnext/patches/v11_0/rename_learn_to_help.py new file mode 100644 index 0000000000..72f75f8b25 --- /dev/null +++ b/erpnext/patches/v11_0/rename_learn_to_help.py @@ -0,0 +1,12 @@ +import frappe +from frappe import _ + +def execute(): + frappe.db.sql(""" + UPDATE `tabDesktop Icon` + SET + `module_name`='Help', `label`=%s + WHERE + `module_name`='Learn' AND + `standard`=1 + """, _('Help')) \ No newline at end of file