<?xml version="1.0"?>
<form string="Alias">
                    <field name="alias_status" invisible="1"/>
                    <div invisible="alias_status != 'invalid'" class="alert alert-danger text-center" role="alert">
                        The last message received on this alias has caused an error.
                    </div>
                    <sheet>
                        <div class="oe_button_box" name="button_box">
                            <button name="open_document" string="Open Document" type="object" class="oe_link" icon="fa-sitemap" invisible="not alias_model_id or alias_force_thread_id == 0"/>
                            <button name="open_parent_document" type="object" class="oe_link" icon="fa-sitemap" invisible="not alias_parent_model_id or alias_parent_thread_id == 0">
                                    <div class="o_field_widget o_stat_info">
                                        <span class="o_stat_text">Open Parent Document</span>
                                    </div>
                            </button>
                        </div>
                        <div class="d-flex">
                            <h2 class="flex-grow-1" dir="ltr">
                                <field name="alias_name" placeholder="alias" class="oe_inline"/>@
                                <field name="alias_domain_id" class="oe_inline" placeholder="e.g. mycompany.com" options="{'no_create': True, 'no_open': True}"/>
                            </h2>
                            <field name="alias_status" widget="badge" decoration-success="alias_status == 'valid'" decoration-warning="alias_status == 'not_tested'" decoration-danger="alias_status == 'invalid'"/>
                        </div>
                        <group>
                            <field name="alias_model_id"/>
                            <field name="alias_force_thread_id"/>
                            <field name="alias_defaults"/>
                            <field name="alias_contact"/>
                            <field name="alias_incoming_local"/>
                            <field name="alias_parent_model_id"/>
                            <field name="alias_parent_thread_id"/>
                        </group>
                        <label for="alias_bounced_content" invisible="alias_contact == 'everyone'"/>
                        <field name="alias_bounced_content" invisible="alias_contact == 'everyone'"/>
                    </sheet>
                </form>
            