<?xml version="1.0"?>
<form string="Payment provider">
                <field name="company_id" invisible="1"/>
                <field name="is_published" invisible="1"/>
                <field name="main_currency_id" invisible="1"/>
                <field name="support_fees" invisible="1"/>
                <field name="support_manual_capture" invisible="1"/>
                <field name="support_tokenization" invisible="1"/>
                <field name="support_express_checkout" invisible="1"/>
                <field name="module_id" invisible="1"/>
                <field name="module_state" invisible="1"/>
                <field name="module_to_buy" invisible="1"/>
                <field name="show_credentials_page" invisible="1"/>
                <field name="show_allow_express_checkout" invisible="1"/>
                <field name="show_allow_tokenization" invisible="1"/>
                <field name="show_payment_icon_ids" invisible="1"/>
                <field name="show_pre_msg" invisible="1"/>
                <field name="show_pending_msg" invisible="1"/>
                <field name="show_auth_msg" invisible="1"/>
                <field name="show_done_msg" invisible="1"/>
                <field name="show_cancel_msg" invisible="1"/>
                <field name="code" invisible="1"/>
                <sheet>
                    <!-- === Stat Buttons === -->
                    <div class="oe_button_box" name="button_box" attrs="{'invisible': [('module_state', '!=', 'installed')]}">
                        <button name="action_toggle_is_published" attrs="{'invisible': [('is_published', '=', False)]}" class="oe_stat_button" type="object" icon="fa-globe">
                            <div class="o_stat_info o_field_widget">
                                <span class="text-success">Published</span>
                            </div>
                        </button>
                        <button name="action_toggle_is_published" attrs="{'invisible': [('is_published', '=', True)]}" class="oe_stat_button" type="object" icon="fa-eye-slash">
                            <div class="o_stat_info o_field_widget">
                                <span class="text-danger">Unpublished</span>
                            </div>
                        </button>
                    </div>
                    <field name="image_128" widget="image" class="oe_avatar" attrs="{'readonly': [('module_state', '!=', 'installed')]}"/>
                    <widget name="web_ribbon" title="Disabled" bg_color="bg-danger" attrs="{'invisible': ['|', ('module_state', '!=', 'installed'), ('state', '!=', 'disabled')]}"/>
                    <widget name="web_ribbon" title="Test Mode" bg_color="bg-warning" attrs="{'invisible': ['|', ('module_state', '!=', 'installed'), ('state', '!=', 'test')]}"/>
                    <div class="oe_title">
                        <h1><field name="name" placeholder="Name"/></h1>
                        <div attrs="{'invisible': ['|', ('module_state', '=', 'installed'), ('module_id', '=', False)]}">
                            <a attrs="{'invisible': [('module_to_buy', '=', False)]}" href="https://odoo.com/pricing?utm_source=db&amp;utm_medium=module" target="_blank" class="btn btn-info" role="button">Upgrade</a>
                            <button attrs="{'invisible': [('module_to_buy', '=', True)]}" type="object" class="btn btn-primary" name="button_immediate_install" string="Install"/>
                        </div>
                    </div>
                    <div id="provider_creation_warning" attrs="{'invisible': [('id', '!=', False)]}" class="alert alert-warning" role="alert">
                        <strong>Warning</strong> Creating a payment provider from the <em>CREATE</em> button is not supported.
                        Please use the <em>Duplicate</em> action instead.
                    </div>
                    <group>
                        <group name="payment_state" attrs="{'invisible': [('module_state', 'not in', ('installed', False))]}">
                            <field name="code" groups="base.group_no_one" attrs="{'readonly': [('id', '!=', False)]}"/>
                            <field name="state" widget="radio"/>
                            <field name="company_id" groups="base.group_multi_company" options="{&quot;no_open&quot;:True}"/>
                        </group>
                    </group>
                    <notebook attrs="{'invisible': ['&amp;', ('module_id', '!=', False), ('module_state', '!=', 'installed')]}">
                        <page string="Credentials" name="credentials" attrs="{'invisible': ['|', ('code', '=', 'none'), ('show_credentials_page', '=', False)]}">
                            <group name="provider_credentials"/>
                        </page>
                        <page string="Configuration" name="configuration">
                            <group name="provider_config">
                                <group string="Payment Form" name="payment_form">
                                    <field name="display_as" placeholder="If not defined, the provider name will be used."/>
                                    <field name="payment_icon_ids" attrs="{'invisible': [('show_payment_icon_ids', '=', False)]}" widget="many2many_tags"/>
                                    <field name="allow_tokenization" attrs="{'invisible': ['|', ('support_tokenization', '=', False), ('show_allow_tokenization', '=', False)]}"/>
                                    <field name="capture_manually" attrs="{'invisible': [('support_manual_capture', '=', False)]}"/>
                                    <field name="allow_express_checkout" attrs="{'invisible': ['|', ('support_express_checkout', '=', False), ('show_allow_express_checkout', '=', False)]}"/>
                                </group>
                                <group string="Availability" name="availability">
                                    <field name="maximum_amount"/>
                                    <field name="available_country_ids" widget="many2many_tags" placeholder="Select countries. Leave empty to make available everywhere." options="{'no_open': True, 'no_create': True}"/>
                                </group>
                                <group string="Payment Followup" name="payment_followup" invisible="1"/>
                            </group>
                        </page>
                        <page string="Fees" name="fees" attrs="{'invisible': [('support_fees', '=', False)]}">
                            <group name="payment_fees">
                                <field name="fees_active"/>
                                <field name="fees_dom_fixed" attrs="{'invisible': [('fees_active', '=', False)]}"/>
                                <field name="fees_dom_var" attrs="{'invisible': [('fees_active', '=', False)]}"/>
                                <field name="fees_int_fixed" attrs="{'invisible': [('fees_active', '=', False)]}"/>
                                <field name="fees_int_var" attrs="{'invisible': [('fees_active', '=', False)]}"/>
                            </group>
                        </page>
                        <page string="Messages" name="messages" attrs="{'invisible': [('module_id', '=', True), ('module_state', '!=', 'installed')]}">
                            <group>
                                <field name="pre_msg" attrs="{'invisible': [('show_pre_msg', '=', False)]}"/>
                                <field name="pending_msg" attrs="{'invisible': [('show_pending_msg', '=', False)]}"/>
                                <field name="auth_msg" attrs="{'invisible': ['|', ('support_manual_capture', '=', False), ('show_auth_msg', '=', False)]}"/>
                                <field name="done_msg" attrs="{'invisible': [('show_done_msg', '=', False)]}"/>
                                <field name="cancel_msg" attrs="{'invisible': [('show_cancel_msg', '=', False)]}"/>
                            </group>
                        </page>
                    </notebook>
                </sheet>
            </form>
        