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

This commit is contained in:
Yannick Tivisse
2015-09-08 15:40:38 +02:00
parent 1c59ae181f
commit ed4dfdfc9d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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">
+1 -1
View File
@@ -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))