Files
odoo_source/addons/payment_paypal/views/payment_views.xml
T
7b165cd555 [REF] payment_paypal: migrate PayPal to the new payment API
See the merge commit for more details.

task-2333036

Co-authored-by: Antoine Vandevenne <anv@odoo.com>
Co-authored-by: Victor Feyens <vfe@odoo.com>
2021-03-30 09:25:51 +02:00

45 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="payment_acquirer_form" model="ir.ui.view">
<field name="name">PayPal Acquirer Form</field>
<field name="model">payment.acquirer</field>
<field name="inherit_id" ref="payment.payment_acquirer_form"/>
<field name="arch" type="xml">
<xpath expr='//group[@name="acquirer"]' position='inside'>
<group attrs="{'invisible': [('provider', '!=', 'paypal')]}">
<field name="paypal_email_account"
attrs="{'required':[('provider', '=', 'paypal'), ('state', '!=', 'disabled')]}"/>
<field name="paypal_seller_account"/>
<!-- This field should no longer be used but is kept in debug mode for the time
being, until we are sure that the verification protocol of IPN can be used
for DPT notifications -->
<field name="paypal_pdt_token" groups="base.group_no_one"/>
<field name="paypal_use_ipn"
attrs="{'required':[('provider', '=', 'paypal'), ('state', '!=', 'disabled')]}"/>
<a href="https://www.odoo.com/documentation/user/general/payment_acquirers/paypal.html"
target="_blank"
colspan="2">
How to configure your paypal account?
</a>
</group>
</xpath>
</field>
</record>
<record id="payment_transaction_form" model="ir.ui.view">
<field name="name">PayPal Transaction Form</field>
<field name="model">payment.transaction</field>
<field name="inherit_id" ref="payment.payment_transaction_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='acquirer_reference']" position="after">
<field name="paypal_type"
readonly="1"
attrs="{'invisible': [('provider', '!=', 'paypal')]}"
groups="base.group_no_one"/>
</xpath>
</field>
</record>
</odoo>