Odoo18-Base/addons/payment_adyen/views/payment_provider_views.xml
2025-03-10 10:52:11 +07:00

33 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="payment_provider_form" model="ir.ui.view">
<field name="name">Adyen 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="provider_credentials" position='inside'>
<group invisible="code != 'adyen'">
<field name="adyen_merchant_account" required="code == 'adyen' and state != 'disabled'"/>
<field name="adyen_api_key" required="code == 'adyen' and state != 'disabled'" password="True"/>
<field name="adyen_client_key" required="code == 'adyen' and state != 'disabled'"/>
<field name="adyen_hmac_key" required="code == 'adyen' and state != 'disabled'" password="True"/>
<field name="adyen_api_url_prefix" required="code == 'adyen' and state != 'disabled'"/>
</group>
</group>
<group name="provider_config" position='before'>
<div invisible="code != 'adyen' or not capture_manually"
class="alert alert-warning"
role="alert">
<strong>Warning:</strong> To capture the amount manually, you also need to set
the Capture Delay to manual on your Adyen account settings.
<a href="https://www.odoo.com/documentation/17.0/applications/finance/payment_providers/adyen.html#place-a-hold-on-a-card"
title="Learn More"
target="_blank">Learn More</a>
</div>
</group>
</field>
</record>
</odoo>