49 lines
2.0 KiB
XML
49 lines
2.0 KiB
XML
<?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_client_id"
|
|
string="Client ID"
|
|
required="code == 'paypal' and state != 'disabled'"
|
|
/>
|
|
<field
|
|
name="paypal_client_secret"
|
|
string="Client Secret"
|
|
password="True"
|
|
required="code == 'paypal' and state != 'disabled'"
|
|
/>
|
|
<label for="paypal_webhook_id" string="Webhook ID"/>
|
|
<div class="o_row" col="2">
|
|
<field name="paypal_webhook_id"/>
|
|
<button
|
|
string="Generate your webhook"
|
|
type="object"
|
|
name="action_paypal_create_webhook"
|
|
class="btn-primary"
|
|
invisible="paypal_webhook_id"
|
|
/>
|
|
</div>
|
|
<widget
|
|
name="documentation_link"
|
|
path="/applications/finance/payment_providers/paypal.html"
|
|
label="How to configure your paypal account?"
|
|
colspan="2"
|
|
/>
|
|
</group>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|