Merge pull request #16337 from Anurag810/Employee
fix: Employee Onboarding/Seperation task Assignment
This commit is contained in:
commit
c13b0562ba
@ -54,6 +54,9 @@ class EmployeeBoardingController(Document):
|
|||||||
where parenttype='User' and role=%s''', activity.role)
|
where parenttype='User' and role=%s''', activity.role)
|
||||||
users = users + user_list
|
users = users + user_list
|
||||||
|
|
||||||
|
if "Administrator" in users:
|
||||||
|
users.remove("Administrator")
|
||||||
|
|
||||||
# assign the task the users
|
# assign the task the users
|
||||||
if users:
|
if users:
|
||||||
self.assign_task_to_users(task, set(users))
|
self.assign_task_to_users(task, set(users))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user