<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">

    <grid name="group-grid" id="base-group-grid" title="Groups" model="com.axelor.auth.db.Group">
        <field name="name" />
        <field name="code" />
        <field name="navigation" />
        <field name="isClient"/>
        <field name="isSupplier"/>
    </grid>

    <form name="group-form" id="base-group-form" title="Group" model="com.axelor.auth.db.Group">
        <toolbar>
            <button name="showPermissionsBtn" title="Show permissions" onClick="action-group-view-permissions" hideIf="permissions == null || permissions.length == 0" />
        </toolbar>
        <panel name="overviewPanel" title="Overview">
            <field name="name" onChange="action-condition-group-validName" validIf="name.length >= 2"/>
            <field name="code" onChange="action-condition-group-validCode" validIf="code.length >= 2" readonlyIf="id &amp;&amp; code == 'admins'"/>
            <field name="navigation"/>
            <panel name="actionsPanel" stacked="true">
                <field name="homeAction" hidden="true" x-bind="{{__actionSelect.name}}"/>
                <field name="__actionSelect" title="Action" widget="SuggestBox" canNew="false" target="com.axelor.meta.db.MetaAction" target-name="name" domain="self.type = 'action-view' and self.home = true"/>
            </panel>
            <field name="technicalStaff" colSpan="4"/>
            <field name="isClient" colSpan="4"/>
            <field name="isSupplier" colSpan="4"/>
        </panel>
        <panel-tabs name="mainPanelTab">
            <panel-related name="rolesPanel" field="roles" form-view="role-form" grid-view="role-grid"/>
            <panel-related name="permissionsPanel" field="permissions" grid-view="simple-permission-grid" form-view="permission-form"/>
            <panel-related name="metaPermissionsPanel" field="metaPermissions"/>
            <panel-related name="menusPanel" field="menus" grid-view="simple-meta-menu-grid" form-view="meta-menu-form"/>
            <panel-related name="viewsPanel" field="views" grid-view="simple-meta-view-grid" form-view="meta-view-form"/>
        </panel-tabs>

        <panel-mail name="mailsPanel">
		      <mail-messages limit="4"/>
		      <mail-followers/>
		    </panel-mail>
    </form>

</object-views>