<?xml version="1.0"?>
<form class="form_peppol_registration">
                <field name="company_id" invisible="1"/>
                <sheet>
                    <div class="m-0" name="warnings" invisible="not peppol_warnings">
                        <field name="peppol_warnings" class="o_field_html" widget="actionable_errors"/>
                    </div>

                    <div name="peppol_registration">
                        <p class="text-muted" invisible="not use_parent_connection">
                            This branch company will use the active Peppol connection found on
                            <field name="parent_company_name" class="oe_inline o_form_label" readonly="1"/>
                            and send invoices via Peppol on their behalf.
                        </p>
                        <p class="text-muted" invisible="use_parent_connection">
                            Send electronic invoices, and receive bills automatically via Peppol.
                        </p>

                        <group col="1">
                            <group>
                                <field name="smp_registration" string="Allow incoming invoices" invisible="1"/>
                                <field name="peppol_eas" placeholder="Peppol ID" nolabel="1" widget="peppol_non_focusable_selection" class="o_field_peppol_eas_selection"/>
                                <field name="peppol_endpoint" nolabel="1"/>
                                <field name="contact_email" string="Email" readonly="use_parent_connection"/>
                                <field name="phone_number" required="edi_mode not in ('demo', 'test')" readonly="use_parent_connection" string="Phone"/>
                            </group>

                            <!-- edi mode info -->
                            <field name="edi_mode_constraint" invisible="1"/>
                            <group invisible="account_peppol_proxy_state != 'not_registered'">
                                <field name="edi_mode" invisible="1"/>
                                <div class="text-muted col" invisible="edi_mode != 'prod'">
                                    By clicking the button below I accept that Odoo may process my e-invoices.
                                </div>
                                <div class="text-muted col" invisible="edi_mode != 'test'">
                                    Test mode allows sending e-invoices through the test Peppol network.
                                    By clicking the button below I accept that Odoo may process my e-invoices.
                                </div>
                            </group>
                        </group>
                    </div>
                </sheet>
                <footer>
                    <widget name="peppol_settings_buttons" invisible="account_peppol_proxy_state in ('rejected', False)"/>
                </footer>
            </form>
        