parent
e058f2bdad
commit
74904d8505
|
@ -679,8 +679,8 @@ class SimpleDataForm(DataForm, DataRecord):
|
||||||
f.value = ''
|
f.value = ''
|
||||||
# Keep all required fields
|
# Keep all required fields
|
||||||
continue
|
continue
|
||||||
if (hasattr(f, 'value') and not f.value) or (hasattr(f, 'values') \
|
if (hasattr(f, 'value') and not f.value and f.value != 0) or (
|
||||||
and len(f.values) == 0):
|
hasattr(f, 'values') and len(f.values) == 0):
|
||||||
to_be_removed.append(f)
|
to_be_removed.append(f)
|
||||||
else:
|
else:
|
||||||
del f.label
|
del f.label
|
||||||
|
|
Loading…
Reference in New Issue