feat: Add task weight for employee onboarding activity (#17216)
This activity weight will be used to update the task weight
diff --git a/erpnext/hr/utils.py b/erpnext/hr/utils.py
index e0b6a51..313cfc4 100644
--- a/erpnext/hr/utils.py
+++ b/erpnext/hr/utils.py
@@ -45,7 +45,8 @@
"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 []