mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: task status loop (#26007)
This commit is contained in:
@@ -73,9 +73,6 @@ class Task(NestedSet):
|
|||||||
if (self.progress or 0) > 100:
|
if (self.progress or 0) > 100:
|
||||||
frappe.throw(_("Progress % for a task cannot be more than 100."))
|
frappe.throw(_("Progress % for a task cannot be more than 100."))
|
||||||
|
|
||||||
if self.progress == 100:
|
|
||||||
self.status = 'Completed'
|
|
||||||
|
|
||||||
if self.status == 'Completed':
|
if self.status == 'Completed':
|
||||||
self.progress = 100
|
self.progress = 100
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user