Skip to content
Snippets Groups Projects
Commit 95b2b894 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Fix a bug related to obsolete condition between default and not null.

parent d577f2e8
No related branches found
No related tags found
No related merge requests found
......@@ -109,13 +109,12 @@ def _to_field(field, linkedcombo=True, **kwargs):
# field label translate in the local language
cfg["fieldLabel"] = str(T(field.label))
# default value and not null
# NOTE: the entryForm doesn't work when both default and
# notnull condition are defined.
# default value
if field.default:
cfg["value"] = field.default
elif field.notnull:
# not null
if field.notnull:
cfg["allowBlank"] = False
cfg["afterLabelTextTpl"] = '<span style="color:red"> * </span>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment