Commit 8fdc8cba authored by Jérome Perrin's avatar Jérome Perrin

Add not_assigned group on form.group_list when creating the group for fields not in the form



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11345 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89a880a1
......@@ -702,6 +702,7 @@ class ObjectTemplateItem(BaseTemplateItem):
new_groups_dict['not_assigned'].append(widget_id)
else:
new_groups_dict['not_assigned'] = [widget_id,]
obj.group_list = list(obj.group_list) + ['not_assigned']
# second check all widget_id in order are in form
for group_id in new_groups_dict.keys():
for widget_id in new_groups_dict[group_id]:
......@@ -710,7 +711,7 @@ class ObjectTemplateItem(BaseTemplateItem):
# remove it fro the group
new_groups_dict[group_id].remove(widget_id)
# now set new group object
obj.groups = new_groups_dict
obj.groups = new_groups_dict
else:
# for old business template format
BaseTemplateItem.install(self, context, trashbin, **kw)
......
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