payment_provider_views.xml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="payment_provider_form" model="ir.ui.view">
  4. <field name="name">Alipay 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', '!=', 'alipay')]}">
  12. This provider is deprecated.
  13. Consider disabling it and moving to <strong>Asiapay</strong>.
  14. </div>
  15. </xpath>
  16. <group name="provider_credentials" position="inside">
  17. <group attrs="{'invisible': [('code', '!=', 'alipay')]}">
  18. <field name="alipay_payment_method" widget="radio"/>
  19. <field name="alipay_seller_email"
  20. attrs="{'invisible': [('alipay_payment_method', '=', 'standard_checkout')], 'required': [('code', '=', 'alipay'), ('alipay_payment_method', '=', 'express_checkout')]}"/>
  21. <field name="alipay_merchant_partner_id"/>
  22. <field name="alipay_md5_signature_key" password="True"/>
  23. </group>
  24. </group>
  25. </field>
  26. </record>
  27. </odoo>