fix: problem during assigning
This commit is contained in:
parent
f7beeff2d8
commit
225802e3a0
@ -73,10 +73,10 @@ class EmployeeBoardingController(Document):
|
|||||||
def assign_task_to_users(self, task, users):
|
def assign_task_to_users(self, task, users):
|
||||||
for user in users:
|
for user in users:
|
||||||
args = {
|
args = {
|
||||||
'assign_to' : user,
|
'assign_to': [user],
|
||||||
'doctype' : task.doctype,
|
'doctype': task.doctype,
|
||||||
'name' : task.name,
|
'name': task.name,
|
||||||
'description' : task.description or task.subject,
|
'description': task.description or task.subject,
|
||||||
'notify': self.notify_users_by_email
|
'notify': self.notify_users_by_email
|
||||||
}
|
}
|
||||||
assign_to.add(args)
|
assign_to.add(args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user