payment_provider_views.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="payment_provider_form" model="ir.ui.view">
  4. <field name="name">PayU latam Provider Form</field>
  5. <field name="model">payment.provider</field>
  6. <field name="inherit_id" ref="payment.payment_provider_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[@id='provider_creation_warning']" position="after">
  9. <div class="alert alert-danger"
  10. role="alert"
  11. attrs="{'invisible': [('code', '!=', 'payulatam')]}">
  12. This provider is deprecated.
  13. Consider disabling it and moving to <strong>Mercado Pago</strong>.
  14. </div>
  15. </xpath>
  16. <group name="provider_credentials" position="inside">
  17. <group attrs="{'invisible': [('code', '!=', 'payulatam')]}">
  18. <field name="payulatam_merchant_id"
  19. attrs="{'required':[('code', '=', 'payulatam'), ('state', '!=', 'disabled')]}"/>
  20. <field name="payulatam_account_id"
  21. attrs="{'required':[('code', '=', 'payulatam'), ('state', '!=', 'disabled')]}"/>
  22. <field name="payulatam_api_key"
  23. attrs="{'required':[('code', '=', 'payulatam'), ('state', '!=', 'disabled')]}"
  24. password="True"/>
  25. </group>
  26. </group>
  27. </field>
  28. </record>
  29. </odoo>