feat: set app name for ERPNext in install and patch

This commit is contained in:
Shivam Mishra 2020-09-30 16:33:14 +05:30
parent 9a4d603403
commit 1323a9a990
3 changed files with 14 additions and 0 deletions

View File

@ -729,3 +729,4 @@ erpnext.patches.v13_0.setting_custom_roles_for_some_regional_reports
erpnext.patches.v13_0.rename_issue_doctype_fields
erpnext.patches.v13_0.change_default_pos_print_format
erpnext.patches.v13_0.set_youtube_video_id
erpnext.patches.v13_0.set_app_name

View File

@ -0,0 +1,8 @@
import frappe
from frappe import _
def execute():
frappe.reload_doctype("System Settings")
settings = frappe.get_doc("System Settings")
settings.app_name = _("ERPNext")
settings.save()

View File

@ -28,6 +28,7 @@ def after_install():
create_default_energy_point_rules()
add_company_to_session_defaults()
add_standard_navbar_items()
add_app_name()
frappe.db.commit()
@ -158,3 +159,7 @@ def add_standard_navbar_items():
})
navbar_settings.save()
def add_app_name():
settings = frappe.get_doc("System Settings")
settings.app_name = _("ERPNext")