fix: Remove parens
This commit is contained in:
parent
ffd4990a70
commit
b9dc4687dc
@ -164,9 +164,9 @@ class Task(NestedSet):
|
||||
throw(_("Child Task exists for this Task. You can not delete this Task."))
|
||||
|
||||
if self.project:
|
||||
tasks = (frappe.get_doc('Project', self.project)).tasks
|
||||
tasks = frappe.get_doc('Project', self.project).tasks
|
||||
for task in tasks:
|
||||
if (task.get('task_id') == self.name):
|
||||
if task.get('task_id') == self.name:
|
||||
frappe.delete_doc('Project Task', task.name)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user