summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/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_authorize/views/payment_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/payment_authorize/views/payment_views.xml')
-rw-r--r--addons/payment_authorize/views/payment_views.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/payment_authorize/views/payment_views.xml b/addons/payment_authorize/views/payment_views.xml
new file mode 100644
index 00000000..310d4fbe
--- /dev/null
+++ b/addons/payment_authorize/views/payment_views.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="acquirer_form_authorize" model="ir.ui.view">
+ <field name="name">acquirer.form.authorize</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', '!=', 'authorize')]}">
+ <field name="authorize_login" attrs="{'required':[ ('provider', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
+ <field name="authorize_transaction_key" password="True" attrs="{'required':[ ('provider', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
+ <field name="authorize_signature_key" password="True" attrs="{'required':[ ('provider', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
+ <label for="authorize_client_key"/>
+ <div>
+ <field name="authorize_client_key" password="True"/>
+ <button class="oe_link" icon="fa-refresh" type="object" name="action_client_secret" string="Generate Client Key" />
+ </div>
+ <a colspan="2" href="https://www.odoo.com/documentation/14.0/applications/general/payment_acquirers/authorize.html" target="_blank">How to get paid with Authorize.Net</a>
+ </group>
+ </xpath>
+ </field>
+ </record>
+
+ <record id="token_form_authorize_net" model="ir.ui.view">
+ <field name='name'>payment.token.form</field>
+ <field name='model'>payment.token</field>
+ <field name="inherit_id" ref="payment.payment_token_form_view"/>
+ <field name="arch" type="xml">
+ <xpath expr='//field[@name="acquirer_ref"]' position='after'>
+ <field name="authorize_profile" attrs="{'invisible':['|', ('provider', '!=', 'authorize'), ('save_token', '=', 'none')]}"/>
+ <field name="provider" invisible='1'/>
+ <field name="save_token" invisible='1'/>
+ </xpath>
+ </field>
+ </record>
+</odoo>