added item specification, bugfix for form grid

This commit is contained in:
Rushabh Mehta
2012-12-17 16:00:34 +05:30
parent 834adfab60
commit 0e9e848cfc
7 changed files with 125 additions and 95 deletions

View File

@@ -156,13 +156,14 @@ def get_template_pages():
def get_doc_fields(page_name):
doc_type, doc_name = get_source_doc(page_name)
obj = webnotes.get_obj(doc_type, doc_name)
obj = webnotes.get_obj(doc_type, doc_name, with_children=True)
if hasattr(obj, 'prepare_template_args'):
obj.prepare_template_args()
args = obj.doc.fields
args['template'] = page_map[doc_type].template
args['obj'] = obj
return args