mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 04:28:27 +00:00
added item specification, bugfix for form grid
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user