'Load project tasks for quick view'

def onload(self):

    if ((not self.get(u'__unsaved')) and (not self.get(u'tasks'))):
        self.load_tasks()
    self.set_onload(u'activity_summary', frappe.db.sql(u'select    activity_type,\n DCTB  DCTB  DCTB sum(hours)    as    total_hours\n DCTB  DCTB  DCTB from    `tabTimesheet    Detail`    where    project=%s    and    docstatus    <    2    group    by    activity_type\n DCTB  DCTB  DCTB order    by    total_hours    desc', self.name, as_dict=True))
