Skip to content
Snippets Groups Projects
Commit ed4dfdfc authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[IMP] base: Hide 'portal', 'public' and 'contact creation' groups if not in debug mode

parent 1c59ae18
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@
</record>
<record model="res.groups" id="group_multi_company">
<field name="category_id" ref="module_category_extra"/>
<field name="category_id" ref="module_category_usability"/>
</record>
<record model="res.groups" id="group_light_multi_company">
......
......@@ -781,7 +781,7 @@ class groups_view(osv.osv):
xml1.append(E.separator(string=_('Application'), colspan="2"))
for app, kind, gs in self.get_groups_by_application(cr, uid, user_context):
# hide groups in category 'Hidden' (except to group_no_one)
attrs = {'groups': 'base.group_no_one'} if app and app.xml_id == 'base.module_category_hidden' else {}
attrs = {'groups': 'base.group_no_one'} if app and (app.xml_id == 'base.module_category_hidden' or app.xml_id == 'base.module_category_extra') else {}
if kind == 'selection':
# application name with a selection field
field_name = name_selection_groups(map(int, gs))
......
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