feat: Add task weight for employee onboarding activity (#17216)

This activity weight will be used to update the task weight
This commit is contained in:
Suraj Shetty
2019-04-12 14:12:03 +05:30
committed by Faris Ansari
parent 54ba900e72
commit c90364f94d
2 changed files with 323 additions and 272 deletions

View File

@@ -45,7 +45,8 @@ class EmployeeBoardingController(Document):
"subject": activity.activity_name + " : " + self.employee_name,
"description": activity.description,
"department": self.department,
"company": self.company
"company": self.company,
"task_weight": activity.task_weight
}).insert(ignore_permissions=True)
activity.db_set("task", task.name)
users = [activity.user] if activity.user else []