summaryrefslogtreecommitdiff
path: root/addons/payment_paypal/data
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/data
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/payment_paypal/data')
-rw-r--r--addons/payment_paypal/data/payment_acquirer_data.xml14
-rw-r--r--addons/payment_paypal/data/payment_paypal_email_data.xml20
2 files changed, 34 insertions, 0 deletions
diff --git a/addons/payment_paypal/data/payment_acquirer_data.xml b/addons/payment_paypal/data/payment_acquirer_data.xml
new file mode 100644
index 00000000..b0e1d49f
--- /dev/null
+++ b/addons/payment_paypal/data/payment_acquirer_data.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+
+ <record id="payment.payment_acquirer_paypal" model="payment.acquirer">
+ <field name="name">Paypal</field>
+ <field name="image_128" type="base64" file="payment_paypal/static/src/img/paypal_icon.png"/>
+ <field name="provider">paypal</field>
+ <field name="company_id" ref="base.main_company"/>
+ <field name="view_template_id" ref="paypal_form"/>
+ </record>
+
+ </data>
+</odoo>
diff --git a/addons/payment_paypal/data/payment_paypal_email_data.xml b/addons/payment_paypal/data/payment_paypal_email_data.xml
new file mode 100644
index 00000000..2765dd28
--- /dev/null
+++ b/addons/payment_paypal/data/payment_paypal_email_data.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" ?>
+<odoo>
+ <template id="mail_template_paypal_invite_user_to_configure">
+ <div>
+ <p>
+ Hello,
+ <br/><br/>
+ You have received a payment through PayPal.<br/>
+ Kindly follow the instructions given by PayPal to create your account.<br/>
+ Then, help us complete your Paypal credentials in Odoo.<br/><br/>
+ </p>
+ <a t-attf-href="/web#id=#{acquirer.id}&amp;model=payment.acquirer&amp;view_type=form" style="background-color: #875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 12px;">Set Paypal credentials</a>
+ <p>
+ <br/><br/>
+ Thanks,<br/>
+ <b>The Odoo Team</b>
+ </p>
+ </div>
+ </template>
+</odoo>