From 7442a886a6bc3877f96ac8e3918d90f598fff098 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Fri, 1 Jul 2022 10:34:32 +0530 Subject: [PATCH] test: fix Employee and Activation test --- erpnext/setup/doctype/employee/test_employee.py | 1 + erpnext/utilities/activation.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/setup/doctype/employee/test_employee.py b/erpnext/setup/doctype/employee/test_employee.py index 2adbbf5423..071c336326 100644 --- a/erpnext/setup/doctype/employee/test_employee.py +++ b/erpnext/setup/doctype/employee/test_employee.py @@ -7,6 +7,7 @@ import frappe import frappe.utils import erpnext +from erpnext.setup.doctype.employee.employee import InactiveEmployeeStatusError test_records = frappe.get_test_records("Employee") diff --git a/erpnext/utilities/activation.py b/erpnext/utilities/activation.py index 7b2df5efd1..4c8379e41c 100644 --- a/erpnext/utilities/activation.py +++ b/erpnext/utilities/activation.py @@ -22,7 +22,6 @@ def get_level(): "Item": 5, "Journal Entry": 3, "Lead": 3, - "Leave Application": 5, "Material Request": 5, "Opportunity": 5, "Payment Entry": 2, @@ -31,8 +30,6 @@ def get_level(): "Purchase Invoice": 5, "Purchase Receipt": 5, "Quotation": 3, - "Salary Slip": 5, - "Salary Structure": 5, "Sales Order": 2, "Sales Invoice": 2, "Stock Entry": 3, @@ -137,7 +134,7 @@ def get_help_messages(): frappe._dict( doctype="Employee", title=_("Create Employee Records"), - description=_("Create Employee records to manage leaves, expense claims and payroll"), + description=_("Create Employee records."), action=_("Create Employee"), route="List/Employee", target=3,