1234567891011121314151617181920212223242526272829303132 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="payment_provider_form" model="ir.ui.view">
- <field name="name">PayU latam 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', '!=', 'payulatam')]}">
- This provider is deprecated.
- Consider disabling it and moving to <strong>Mercado Pago</strong>.
- </div>
- </xpath>
- <group name="provider_credentials" position="inside">
- <group attrs="{'invisible': [('code', '!=', 'payulatam')]}">
- <field name="payulatam_merchant_id"
- attrs="{'required':[('code', '=', 'payulatam'), ('state', '!=', 'disabled')]}"/>
- <field name="payulatam_account_id"
- attrs="{'required':[('code', '=', 'payulatam'), ('state', '!=', 'disabled')]}"/>
- <field name="payulatam_api_key"
- attrs="{'required':[('code', '=', 'payulatam'), ('state', '!=', 'disabled')]}"
- password="True"/>
- </group>
- </group>
- </field>
- </record>
- </odoo>
|