fix in import

This commit is contained in:
Rushabh Mehta 2011-07-01 15:18:24 +05:30
parent 9d5bb4c884
commit 3d114ad763

View file

@ -141,7 +141,7 @@ class _DocType:
for d in doclist:
if d['doctype']=='DocField':
if d.get('fieldname') or d.get('label'):
fields[d['fieldname'] or d['label']] = d
fields[d.get('fieldname') or d('label')] = d
return fields
def _update_field_properties(self, doclist):