added module pages and other css updates

This commit is contained in:
Rushabh Mehta
2012-02-21 17:26:50 +05:30
parent 6e156c748b
commit d025133b39
38 changed files with 1029 additions and 149 deletions

View File

@@ -0,0 +1,12 @@
import webnotes
@webnotes.whitelist()
def get_report_list(arg=None):
"""return list of reports for the given module module"""
webnotes.response['values'] = webnotes.conn.sql("""select
distinct criteria_name, doc_type, parent_doc_type
from `tabSearch Criteria`
where module='%(module)s'
and docstatus in (0, NULL)
order by criteria_name
limit %(limit_start)s, %(limit_page_length)s""" % webnotes.form_dict, as_dict=True)