added report button in todo page

This commit is contained in:
Anand Doshi
2013-02-25 15:22:20 +05:30
parent bdf4bcc2ed
commit b60aef5595
4 changed files with 18 additions and 2 deletions

View File

@@ -2,7 +2,8 @@ from __future__ import unicode_literals
import webnotes
from webnotes.widgets.reportview import execute as runreport
def execute(filters={}):
def execute(filters=None):
if not filters: filters = {}
employees = runreport(doctype="Employee", fields=["name", "employee_name", "department"])
leave_types = webnotes.conn.sql_list("select name from `tabLeave Type`")