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

@@ -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")