diff --git a/product/ERP5Form/RelationField.py b/product/ERP5Form/RelationField.py index 15e2132848b1a24caa604f8e5baf5641f7143641..8dee0900187830d82feca7702554bbfd81458397 100755 --- a/product/ERP5Form/RelationField.py +++ b/product/ERP5Form/RelationField.py @@ -54,7 +54,7 @@ class RelationStringFieldWidget(Widget.TextWidget, Widget.ListWidget): """ property_names = Widget.TextWidget.property_names + \ ['update_method', 'jump_method', 'base_category', 'portal_type', 'catalog_index', - 'default_module', 'relation_setter_id', 'columns', + 'default_module', 'relation_setter_id', 'columns','sort', 'first_item', 'items', 'size', 'extra_item'] update_method = fields.StringField('update_method', @@ -122,6 +122,12 @@ class RelationStringFieldWidget(Widget.TextWidget, Widget.ListWidget): default=[], required=0) + sort = fields.ListTextAreaField('sort', + title='Default Sort', + description=('The default sort keys and order'), + default=[], + required=0) + def render(self, field, key, value, REQUEST): """Render text input field. """