<?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>
                        <div class="d-flex gap-3">
                            <field name="image_1920" widget="contact_image" options="{'preview_image': 'avatar_128', 'zoom': true, 'size': [130,130], 'img_class': 'rounded-4'}"/>
                            <field name="avatar_128" invisible="1"/> <!-- Needed in contact_image widget -->
                            <div class="d-flex flex-column flex-grow-1 justify-content-center">
                                <h1 class="mb-0 w-100">
                                    <field name="name" placeholder="e.g. John Doe" required="1"/>
                                </h1>
                                <div class="d-flex align-items-baseline w-100">
                                    <field name="email" invisible="1"/> <!-- needed to update partner's email from on_change_login() -->
                                    <i class="fa fa-fw me-1 fa-envelope text-primary" title="Email"/>
                                    <field name="login" class="w-100" placeholder="Email"/>
                                </div>
                                <div class="d-flex align-items-baseline w-100">
                                    <i class="fa fa-fw me-1 fa-phone text-primary" title="Phone"/>
                                    <field name="phone" class="w-100" widget="phone" placeholder="Phone"/>
                                </div>
                                <div class="d-flex align-items-baseline w-100" groups="base.group_multi_company">
                                    <i class="fa fa-fw me-1 fa-building text-primary" title="Company"/>
                                    <field name="company_id" class="w-100" context="{'user_preference': 0}" placeholder="Company"/>
                                </div>
                            </div>
                        </div>
                        <group name="access_groups" invisible="id &gt; 0">
                            <label for="group_ids" string="Access Rights" groups="base.group_no_one"/>
                            <div groups="base.group_no_one">
                                <field name="group_ids" readonly="1" widget="many2many_tags" style="display: inline;"/> You will be able to define additional access rights by editing the newly created user under the Settings / Users menu.
                            </div>
                        </group>
                    </sheet>
                </form>
            