Changing the name of model payment.acquirer to payment.provider and everything that it touches. It is technically incorrect to use the term "acquirer" for systems that only provide a service of payment. After this commit the model payment.acquirer and all related to it will be renamed to payment.provider. Task - 2842088 closes odoo/odoo#90899 Related: odoo/upgrade#3542 Related: odoo/documentation#1981 Related: odoo/enterprise#27131 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
56 lines
3.1 KiB
XML
56 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="payment_provider_form" model="ir.ui.view">
|
|
<field name="name">Authorize.Net 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="code" position='inside'>
|
|
<group attrs="{'invisible': [('code', '!=', 'authorize')]}">
|
|
<field name="authorize_login" attrs="{'required':[('code', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
|
|
<field name="authorize_transaction_key" password="True" attrs="{'required':[ ('code', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
|
|
<field name="authorize_signature_key" password="True" attrs="{'required':[ ('code', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
|
|
<label for="authorize_client_key"/>
|
|
<div>
|
|
<field name="authorize_client_key"/>
|
|
<button class="oe_link" icon="fa-refresh" type="object"
|
|
name="action_update_merchant_details"
|
|
string="Generate Client Key"/>
|
|
</div>
|
|
<a colspan="2" href="https://www.odoo.com/documentation/master/applications/general/payment_providers/authorize.html" target="_blank">
|
|
How to get paid with Authorize.Net
|
|
</a>
|
|
</group>
|
|
</group>
|
|
<field name="display_as" position="before">
|
|
<field name="authorize_payment_method_type"
|
|
attrs="{'invisible': [('code', '!=', 'authorize')], 'required':[('code', '=', 'authorize'), ('state', '!=', 'disabled')]}"/>
|
|
</field>
|
|
<xpath expr="//field[@name='available_country_ids']" position="after">
|
|
<label for="authorize_currency_id" string="Currency" attrs="{'invisible': [('code', '!=', 'authorize')]}"/>
|
|
<div attrs="{'invisible': [('code', '!=', 'authorize')]}">
|
|
<field name="authorize_currency_id"/>
|
|
<button class="oe_link" icon="fa-refresh" type="object"
|
|
name="action_update_merchant_details"
|
|
string="Set Account Currency"/>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="payment_token_form" model="ir.ui.view">
|
|
<field name='name'>Authorize.Net Token Form</field>
|
|
<field name='model'>payment.token</field>
|
|
<field name="inherit_id" ref="payment.payment_token_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr='//field[@name="provider_ref"]' position='after'>
|
|
<field name="provider_code" invisible="1"/>
|
|
<field name="authorize_profile" attrs="{'invisible':[('provider_code', '!=', 'authorize')]}"/>
|
|
<field name="authorize_payment_method_type" attrs="{'invisible': [('provider_code', '!=', 'authorize')]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|