Files
odoo_source/addons/payment_alipay/views/payment_provider_views.xml
T
Antoine Vandevenne (anv) c4b78c203a [CLN] payment(_*): clean view hooks and split files per model
When the payment views were updated with commit odoo/odoo@f7b8f075, a
hook was improperly renamed to `code`, which doesn't help to figure out
its purpose. This commit renames it to `provider_credentials` which
better fits its role.

While doing so, the view files are also renamed and/or split by model to
increase their readability.

closes odoo/odoo#102976

X-original-commit: 49d126d4fce18761d0261adac00e115b840b9b47
Related: odoo/enterprise#32662
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-10-11 13:16:07 +02:00

30 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="payment_provider_form" model="ir.ui.view">
<field name="name">Alipay Provider Form</field>
<field name="model">payment.provider</field>
<field name="inherit_id" ref="payment.payment_provider_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='provider_creation_warning']" position="after">
<div class="alert alert-danger"
role="alert"
attrs="{'invisible': [('code', '!=', 'alipay')]}">
This provider is deprecated.
Consider disabling it and moving to <strong>Asiapay</strong>.
</div>
</xpath>
<group name="provider_credentials" position="inside">
<group attrs="{'invisible': [('code', '!=', 'alipay')]}">
<field name="alipay_payment_method" widget="radio"/>
<field name="alipay_seller_email"
attrs="{'invisible': [('alipay_payment_method', '=', 'standard_checkout')], 'required': [('code', '=', 'alipay'), ('alipay_payment_method', '=', 'express_checkout')]}"/>
<field name="alipay_merchant_partner_id"/>
<field name="alipay_md5_signature_key" password="True"/>
</group>
</group>
</field>
</record>
</odoo>