Commit 18dd0a2c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5Form: fix wrong required=1 in CheckBoxField settings.

parent 92e78cbe
...@@ -51,7 +51,7 @@ class AudioWidget(Widget.TextWidget): ...@@ -51,7 +51,7 @@ class AudioWidget(Widget.TextWidget):
title='Enable on the fly video player change (based on java script)', title='Enable on the fly video player change (based on java script)',
description='Define if javascript is enabled or not on the current Video', description='Define if javascript is enabled or not on the current Video',
default=1, default=1,
required=1) required=0)
audio_player = fields.ListField('audio_player', audio_player = fields.ListField('audio_player',
title='Audio Player', title='Audio Player',
......
...@@ -553,7 +553,7 @@ def create_settings_form(): ...@@ -553,7 +553,7 @@ def create_settings_form():
unicode_mode = fields.CheckBoxField('unicode_mode', unicode_mode = fields.CheckBoxField('unicode_mode',
title='Form properties are unicode', title='Form properties are unicode',
default=0, default=0,
required=1) required=0)
edit_order = fields.LinesField('edit_order', edit_order = fields.LinesField('edit_order',
title='Setters for these properties should be' title='Setters for these properties should be'
'<br /> called by edit() in the defined order') '<br /> called by edit() in the defined order')
......
...@@ -655,7 +655,7 @@ class PlanningBoxWidget(Widget.Widget): ...@@ -655,7 +655,7 @@ class PlanningBoxWidget(Widget.Widget):
title='enable on the fly edition (based on java script)', title='enable on the fly edition (based on java script)',
description='define if javascript is enabled or not on the current Planning', description='define if javascript is enabled or not on the current Planning',
default=1, default=1,
required=1) required=0)
# kind of representation to render : Planning or Calendar # kind of representation to render : Planning or Calendar
vertical_view = fields.CheckBoxField('vertical_view', vertical_view = fields.CheckBoxField('vertical_view',
...@@ -663,7 +663,7 @@ class PlanningBoxWidget(Widget.Widget): ...@@ -663,7 +663,7 @@ class PlanningBoxWidget(Widget.Widget):
description='define if need to changes axis order. By default Y axis is' description='define if need to changes axis order. By default Y axis is'
'main axis, but to display calendar main axis must be X one.', 'main axis, but to display calendar main axis must be X one.',
default=0, default=0,
required=1) required=0)
# added especially for new Planning Structure generation # added especially for new Planning Structure generation
# is used to split result in pages in a ListBox like rendering # is used to split result in pages in a ListBox like rendering
...@@ -737,14 +737,14 @@ class PlanningBoxWidget(Widget.Widget): ...@@ -737,14 +737,14 @@ class PlanningBoxWidget(Widget.Widget):
'If checked, the Y axis will match the right border' \ 'If checked, the Y axis will match the right border' \
'of the planning, otherwise default is applied : left', 'of the planning, otherwise default is applied : left',
default=0, default=0,
required=1) required=0)
x_axis_position = fields.CheckBoxField('x_axis_position', x_axis_position = fields.CheckBoxField('x_axis_position',
title='Force X axis to the bottom instead of top', title='Force X axis to the bottom instead of top',
description='position of X axis over the planning content.' \ description='position of X axis over the planning content.' \
'default is top, if checked then right apply', 'default is top, if checked then right apply',
default=0, default=0,
required=1) required=0)
default = fields.TextAreaField('default', default = fields.TextAreaField('default',
......
...@@ -66,7 +66,7 @@ class VideoWidget(Widget.TextWidget): ...@@ -66,7 +66,7 @@ class VideoWidget(Widget.TextWidget):
title='Enable on the fly video player change (based on java script)', title='Enable on the fly video player change (based on java script)',
description='Define if javascript is enabled or not on the current Video', description='Define if javascript is enabled or not on the current Video',
default=1, default=1,
required=1) required=0)
video_player = fields.ListField('video_player', video_player = fields.ListField('video_player',
title='Video Player', title='Video Player',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment