fix: set task weight from onboarding template (#17840)

This commit is contained in:
Himanshu
2019-06-05 10:26:01 +05:30
committed by Nabin Hait
parent da2e009990
commit 4cb1a1e2e3
3 changed files with 27 additions and 286 deletions

View File

@@ -85,7 +85,7 @@ class EmployeeBoardingController(Document):
@frappe.whitelist()
def get_onboarding_details(parent, parenttype):
return frappe.get_all("Employee Boarding Activity",
fields=["activity_name", "role", "user", "required_for_employee_creation", "description"],
fields=["activity_name", "role", "user", "required_for_employee_creation", "description", "task_weight"],
filters={"parent": parent, "parenttype": parenttype},
order_by= "idx")