53 lines
2.4 KiB
XML
53 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="payment_provider_form" model="ir.ui.view">
|
|
<field name="name">Custom Provider Form</field>
|
|
<field name="model">payment.provider</field>
|
|
<field name="inherit_id" ref="payment.payment_provider_form"/>
|
|
<!-- Load after account_payment for the invisible attr. of the payment_followup group. -->
|
|
<field name="priority">32</field>
|
|
<field name="arch" type="xml">
|
|
<field name="code" invisible="1" position="after">
|
|
<field name="custom_mode" invisible="1"/>
|
|
</field>
|
|
<page name="credentials" position="attributes">
|
|
<attribute name="invisible" separator="or" add="code == 'custom'"/>
|
|
</page>
|
|
<field name="payment_method_ids" position="attributes">
|
|
<attribute name="invisible" separator="or" add="code == 'custom'"/>
|
|
</field>
|
|
<a name="action_view_payment_methods" position="attributes">
|
|
<attribute name="invisible" separator="or" add="code == 'custom'"/>
|
|
</a>
|
|
<field name="capture_manually" position="after">
|
|
<field name="qr_code" invisible="code != 'custom'" />
|
|
</field>
|
|
<group name="payment_followup" position="attributes">
|
|
<attribute name="invisible">code == 'custom'</attribute>
|
|
</group>
|
|
<field name="pre_msg" position="attributes">
|
|
<attribute name="invisible" separator="or" add="code == 'custom'"/>
|
|
</field>
|
|
<field name="pending_msg" position="after">
|
|
<div class="o_row" colspan="2"
|
|
invisible="custom_mode != 'wire_transfer'">
|
|
<button string=" Reload Pending Message"
|
|
type="object"
|
|
name="action_recompute_pending_msg"
|
|
class="oe_link ms-0 ps-0"
|
|
icon="fa-refresh"
|
|
/>
|
|
</div>
|
|
</field>
|
|
<field name="done_msg" position="attributes">
|
|
<attribute name="invisible" separator="or" add="code == 'custom'"/>
|
|
</field>
|
|
<field name="cancel_msg" position="attributes">
|
|
<attribute name="invisible" separator="or" add="code == 'custom'"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|