<?xml version="1.0"?>
<form string="Groups">
                  <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button name="action_show_all_users" type="object" groups="base.group_no_one" class="oe_stat_button" icon="fa-users" help="Users having this group (implicitly or explicitly)">
                            <field string="Users" name="all_users_count" widget="statinfo"/>
                        </button>
                    </div>
                    <h1><field name="name" placeholder="Group Name" required="1"/></h1>
                    <group>
                        <group>
                            <field name="privilege_id" invisible="'default_privilege_id' in context" readonly="context.get('is_action_res_users')"/>
                            <field name="share" invisible="'default_privilege_id' in context" readonly="context.get('is_action_res_users')"/>
                            <field name="api_key_duration" groups="base.group_no_one"/>
                        </group>
                    </group>
                    <notebook>
                        <page string="Users" name="user_ids">
                            <field name="user_ids" context="{'search_default_filter_no_share':1}"/>
                        </page>
                        <page string="Inherited" name="inherit_groups">
                            <group>
                                <field name="implied_ids"/>
                                <field name="implied_by_ids"/>
                                <field name="disjoint_ids" widget="many2many_tags"/>
                            </group>
                        </page>
                        <page string="Menus" name="menus">
                            <field name="menu_access"/>
                        </page>
                        <page string="Views" name="views">
                            <field name="view_access" groups="base.group_system"/>
                        </page>
                        <page string="Access Rights" name="access_rights">
                            <field name="model_access">
                                <list string="Access Rights" editable="top">
                                    <field name="name"/>
                                    <field name="model_id"/>
                                    <field name="perm_read"/>
                                    <field name="perm_write"/>
                                    <field name="perm_create"/>
                                    <field name="perm_unlink"/>
                                </list>
                            </field>
                        </page>
                        <page string="Record Rules" name="record_rules">
                            <field name="rule_groups">
                                <list string="Record Rules" editable="top">
                                    <field name="name"/>
                                    <field name="model_id"/>
                                    <field name="domain_force"/>
                                    <field name="perm_read"/>
                                    <field name="perm_write"/>
                                    <field name="perm_create"/>
                                    <field name="perm_unlink"/>
                                </list>
                            </field>
                        </page><page string="Notes" name="notes">
                            <field name="comment"/>
                        </page>
                    </notebook>
                  </sheet>
                </form>
            