<?xml version="1.0"?>
<form string="Outgoing Mail Servers">
                    <header>
                        <button string="Test Connection" type="object" name="test_smtp_connection" class="btn-primary"/>
                    </header>
                    <sheet>
                        <widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
                        <group>
                            <group>
                                <field name="name" placeholder="e.g. My Outgoing Server"/>
                                <field name="from_filter" placeholder="e.g. email@domain.com, domain.com"/>
                            </group>
                            <group>
                                <field name="sequence"/>
                                <div colspan="2" class="d-flex justify-content-between">
                                    <div>
                                        <label for="max_email_size" string="Convert attachments to links for emails over"/>
                                        <field name="max_email_size" class="oe_inline mx-1"/>
                                        <span class="o_form_label">MB</span>
                                    </div>
                                    <button class="btn btn-link pt-0" type="object" name="action_retrieve_max_email_size">
                                        <i class="fa fa-gear"/> Detect Max Limit
                                    </button>
                                </div>
                            </group>
                        </group>
                        <group>
                            <group>
                                <field name="smtp_authentication" widget="radio"/>
                            </group>
                            <group>
                                <div class="text-muted fst-italic" role="alert" colspan="2" invisible="not smtp_authentication_info">
                                    <field name="smtp_authentication_info"/>
                                </div>
                            </group>
                        </group>
                        <notebook colspan="4" invisible="smtp_authentication == 'cli'">
                            <page name="connection" string="Connection">
                                <group>
                                    <group>
                                        <field name="smtp_encryption" widget="radio"/>
                                        <field name="smtp_debug" groups="base.group_no_one"/>
                                        <field name="smtp_host" required="smtp_authentication != 'cli'"/>
                                        <field name="smtp_port" options="{'format': false}" required="smtp_authentication != 'cli'"/>
                                    </group>
                                    <group>
                                        <field name="smtp_user" invisible="smtp_authentication == 'certificate'" force_save="1"/>
                                        <field name="smtp_pass" invisible="smtp_authentication != 'login'" password="True" force_save="1"/>
                                        <field name="smtp_ssl_certificate" invisible="smtp_authentication != 'certificate'" force_save="1"/>
                                        <field name="smtp_ssl_private_key" invisible="smtp_authentication != 'certificate'" force_save="1"/>
                                    </group>
                                </group>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            