Files
odoo_source/addons/payment_odoo/views/payment_views.xml
T
Antoine Vandevenne (anv) 471a1f39f5 [REF] payment_odoo: migrate Odoo Payment to the new payment API
This commit also renames the module `payment_odoo_by_adyen` to
`payment_odoo` as well as the referring strings ("Odoo Payments" instead
of "Odoo Payments by Adyen", ...).
A dedicated [MOV] commit is not used because neither the [MOV] commit
nor the adapted [REF] would be valid on its own.

See the merge commit for more details.

task-2390665
2021-03-30 09:25:51 +02:00

28 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="payment_acquirer_form" model="ir.ui.view">
<field name="name">Odoo Payments 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', '!=', 'odoo')]}">
<button name="odoo_create_adyen_account"
icon="fa-arrow-right"
type="object"
class="btn-link"
string="Create an account in 1 minute"
attrs="{'invisible': [('odoo_adyen_account_id', '!=', False)]}"/>
<field name="odoo_adyen_account_id"
readonly="1"
attrs="{'invisible': [('odoo_adyen_account_id', '=', False)]}"/>
<field name="odoo_adyen_payout_id"
attrs="{'invisible': [('odoo_adyen_account_id', '=', False)], 'required':[('provider', '=', 'odoo'), ('state', '!=', 'disabled')]}"/>
</group>
</xpath>
</field>
</record>
</odoo>