summaryrefslogtreecommitdiff
path: root/addons/payment_paypal/views/payment_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/payment_paypal/views/payment_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/payment_paypal/views/payment_views.xml')
-rw-r--r--addons/payment_paypal/views/payment_views.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/addons/payment_paypal/views/payment_views.xml b/addons/payment_paypal/views/payment_views.xml
new file mode 100644
index 00000000..890a069e
--- /dev/null
+++ b/addons/payment_paypal/views/payment_views.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data>
+
+ <record id="acquirer_form_paypal" model="ir.ui.view">
+ <field name="name">acquirer.form.paypal</field>
+ <field name="model">payment.acquirer</field>
+ <field name="inherit_id" ref="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"/>
+ <field name="paypal_pdt_token"/>
+ <field name="paypal_use_ipn" attrs="{'required':[ ('provider', '=', 'paypal'), ('state', '!=', 'disabled')]}"/>
+ <a colspan="2" href="https://www.odoo.com/documentation/14.0/applications/general/payment_acquirers/paypal.html" target="_blank">How to configure your paypal account?</a>
+ </group>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="transaction_form_paypal" model="ir.ui.view">
+ <field name="name">acquirer.transaction.form.paypal</field>
+ <field name="model">payment.transaction</field>
+ <field name="inherit_id" ref="payment.transaction_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='acquirer_reference']" position="after">
+ <field name="paypal_txn_type" readonly="1" attrs="{'invisible': [('provider', '!=', 'paypal')]}"/>
+ </xpath>
+ </field>
+ </record>
+
+ </data>
+</odoo>