<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="payment_provider_form" model="ir.ui.view">
        <field name="name">PayPal Provider Form</field>
        <field name="model">payment.provider</field>
        <field name="inherit_id" ref="payment.payment_provider_form"/>
        <field name="arch" type="xml">
            <group name="provider_credentials" position='inside'>
                <group invisible="code != 'paypal'">
                    <field name="paypal_email_account"
                           required="code == 'paypal' and state != 'disabled'"/>
                    <field name="paypal_pdt_token"  password="True"
                           required="code == 'paypal' and state != 'disabled'"/>
                    <a href="https://www.odoo.com/documentation/17.0/applications/finance/payment_providers/paypal.html"
                       target="_blank"
                       colspan="2">
                        How to configure your paypal account?
                    </a>
                </group>
            </group>
        </field>
    </record>

</odoo>
