<?xml version="1.0"?>
<form string="Users">
                    <sheet>
                        <div class="alert alert-info text-center mb-3" invisible="id &gt; 0" role="alert">
                            You are inviting a new user.
                        </div>
                        <field name="image_1920" widget="image" class="oe_avatar" options="{&quot;zoom&quot;: true, &quot;preview_image&quot;: &quot;avatar_128&quot;}"/>
                        <div class="oe_title">
                            <label for="name"/>
                            <h1><field name="name" placeholder="e.g. John Doe" required="1"/></h1>
                            <field name="email" invisible="1"/><!-- needed to update partner's email from on_change_login() -->
                            <label for="login" string="Email Address"/>
                            <h2>
                                <field name="login" placeholder="e.g. email@yourcompany.com"/>
                            </h2>
                        </div>
                        <group name="phone_numbers">
                            <field name="company_id" context="{'user_preference': 0}" groups="base.group_multi_company"/>
                            <label for="groups_id" string="Access Rights" invisible="id &gt; 0" groups="base.group_no_one"/>
                            <div invisible="id &gt; 0" groups="base.group_no_one">
                                <field name="groups_id" readonly="1" widget="many2many_tags" options="{'color_field': 'color'}" style="display: inline;"/> You will be able to define additional access rights by editing the newly created user under the Settings / Users menu.
                            </div>
                            <field name="phone" widget="phone"/>
                            <field name="mobile" widget="phone"/>
                        </group>
                    </sheet>
                </form>
            