mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
[fix] task visibility fix #5601
This commit is contained in:
@@ -15,7 +15,7 @@ class Project(Document):
|
|||||||
|
|
||||||
def onload(self):
|
def onload(self):
|
||||||
"""Load project tasks for quick view"""
|
"""Load project tasks for quick view"""
|
||||||
if not self.get('__unsaved') and not self.get("tasks"):
|
if not self.get("tasks"):
|
||||||
self.load_tasks()
|
self.load_tasks()
|
||||||
|
|
||||||
self.set_onload('activity_summary', frappe.db.sql('''select activity_type, sum(hours) as total_hours
|
self.set_onload('activity_summary', frappe.db.sql('''select activity_type, sum(hours) as total_hours
|
||||||
|
|||||||
Reference in New Issue
Block a user