diff --git a/cgi-bin/webnotes/model/doctype.py b/cgi-bin/webnotes/model/doctype.py index d3731f91ed..b6badd098a 100644 --- a/cgi-bin/webnotes/model/doctype.py +++ b/cgi-bin/webnotes/model/doctype.py @@ -141,7 +141,7 @@ class _DocType: for d in doclist: if d['doctype']=='DocField': if d.get('fieldname') or d.get('label'): - fields[d.get('fieldname') or d('label')] = d + fields[d.get('fieldname') or d.get('label')] = d return fields def _update_field_properties(self, doclist):