mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
fix: Remove parens
This commit is contained in:
@@ -164,9 +164,9 @@ class Task(NestedSet):
|
|||||||
throw(_("Child Task exists for this Task. You can not delete this Task."))
|
throw(_("Child Task exists for this Task. You can not delete this Task."))
|
||||||
|
|
||||||
if self.project:
|
if self.project:
|
||||||
tasks = (frappe.get_doc('Project', self.project)).tasks
|
tasks = frappe.get_doc('Project', self.project).tasks
|
||||||
for task in 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)
|
frappe.delete_doc('Project Task', task.name)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user