test: fix Employee and Activation test
This commit is contained in:
@@ -7,6 +7,7 @@ import frappe
|
|||||||
import frappe.utils
|
import frappe.utils
|
||||||
|
|
||||||
import erpnext
|
import erpnext
|
||||||
|
from erpnext.setup.doctype.employee.employee import InactiveEmployeeStatusError
|
||||||
|
|
||||||
test_records = frappe.get_test_records("Employee")
|
test_records = frappe.get_test_records("Employee")
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ def get_level():
|
|||||||
"Item": 5,
|
"Item": 5,
|
||||||
"Journal Entry": 3,
|
"Journal Entry": 3,
|
||||||
"Lead": 3,
|
"Lead": 3,
|
||||||
"Leave Application": 5,
|
|
||||||
"Material Request": 5,
|
"Material Request": 5,
|
||||||
"Opportunity": 5,
|
"Opportunity": 5,
|
||||||
"Payment Entry": 2,
|
"Payment Entry": 2,
|
||||||
@@ -31,8 +30,6 @@ def get_level():
|
|||||||
"Purchase Invoice": 5,
|
"Purchase Invoice": 5,
|
||||||
"Purchase Receipt": 5,
|
"Purchase Receipt": 5,
|
||||||
"Quotation": 3,
|
"Quotation": 3,
|
||||||
"Salary Slip": 5,
|
|
||||||
"Salary Structure": 5,
|
|
||||||
"Sales Order": 2,
|
"Sales Order": 2,
|
||||||
"Sales Invoice": 2,
|
"Sales Invoice": 2,
|
||||||
"Stock Entry": 3,
|
"Stock Entry": 3,
|
||||||
@@ -137,7 +134,7 @@ def get_help_messages():
|
|||||||
frappe._dict(
|
frappe._dict(
|
||||||
doctype="Employee",
|
doctype="Employee",
|
||||||
title=_("Create Employee Records"),
|
title=_("Create Employee Records"),
|
||||||
description=_("Create Employee records to manage leaves, expense claims and payroll"),
|
description=_("Create Employee records."),
|
||||||
action=_("Create Employee"),
|
action=_("Create Employee"),
|
||||||
route="List/Employee",
|
route="List/Employee",
|
||||||
target=3,
|
target=3,
|
||||||
|
|||||||
Reference in New Issue
Block a user