You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
12 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!-- FORM VIEW ACQUIRER PAYPLUG -->
  5. <record id="payment_provider_form_inherit" model="ir.ui.view">
  6. <field name="name">payment.provider.form</field>
  7. <field name="model">payment.provider</field>
  8. <field name="inherit_id" ref="payment.payment_provider_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//field[@name='name']" position="attributes">
  11. <attribute name="attrs">{'readonly': [('code','=','payplug')]}</attribute>
  12. </xpath>
  13. <xpath expr="//group[@name='payment_state']" position="after">
  14. <group attrs="{'invisible': [('code', '!=', 'payplug')]}">
  15. <!-- PAYMENT PAYPLUG -->
  16. <label for="payment_type_payplug"/>
  17. <div style="margin-bottom: 5px;">
  18. <field name="payment_type_payplug" readonly="1"/>
  19. <span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_payplug', '=', False)]}">
  20. <i class="fa fa-check" title="PayPlug actived"/> <b> PayPlug is activated</b>
  21. </span>
  22. <div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_payplug', '=', False)]}">
  23. <img src='/acquirer_payplug/static/src/img/icon/icon-visa.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
  24. <img src='/acquirer_payplug/static/src/img/icon/icon-mastercard.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
  25. <img src='/acquirer_payplug/static/src/img/icon/icon-cb.png' style="max-height: 32px;" alt="icon"/>
  26. </div>
  27. <p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_payplug', '=', True)]}">
  28. <i class="fa fa-pencil" title="PayPlug actived"> PayPlug online payments via credit cards.</i>
  29. </p>
  30. <hr style="size: 2px, color: grey;"/>
  31. </div>
  32. <label for="payment_type_oney"/>
  33. <div style="margin-bottom: 5px;">
  34. <field name="payment_type_oney"/>
  35. <span colspan="2" style="font-size: 12px; color: #ffb200;" attrs="{'invisible': [('payment_type_oney', '=', True)]}">
  36. <i class="fa fa-check" title="actived"/> <b><i> PayLater is disabled</i></b>
  37. </span>
  38. <span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_oney', '=', False)]}">
  39. <i class="fa fa-check" title="PayLater actived"/> <b> PayLater is activated</b>
  40. </span>
  41. <div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_oney', '=', False)]}">
  42. <img src='/acquirer_payplug/static/src/img/icon/icon-visa.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
  43. <img src='/acquirer_payplug/static/src/img/icon/icon-mastercard.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
  44. <img src='/acquirer_payplug/static/src/img/icon/icon-cb.png' style="max-height: 32px;" alt="icon"/>
  45. </div>
  46. <p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_oney', '=', True)]}">
  47. <i class="fa fa-pencil" title="text"> PayLater online payments via credit cards 3x or 4x.</i>
  48. </p>
  49. <hr style="size: 2px, color: grey;"/>
  50. </div>
  51. <!-- PAYMENT AMEX -->
  52. <label for="payment_type_amex"/>
  53. <div style="margin-bottom: 5px;">
  54. <field name="payment_type_amex"/>
  55. <span colspan="2" style="font-size: 12px; color: #ffb200;" attrs="{'invisible': [('payment_type_amex', '=', True)]}">
  56. <i class="fa fa-check" title="AmEx disabled"/> <b><i> AmEx is disabled</i></b>
  57. </span>
  58. <span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_amex', '=', False)]}">
  59. <i class="fa fa-check" title="AmEx actived"/> <b> AmEx is activated</b>
  60. </span>
  61. <div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_amex', '=', False)]}">
  62. <img src='/acquirer_payplug/static/src/img/icon/american_express.png' style="max-height: 32px;" alt="icon"/>
  63. </div>
  64. <p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_amex', '=', True)]}">
  65. <i class="fa fa-pencil" title="AmEx"> PayPlug online payments via credit cards American express.</i>
  66. </p>
  67. <p colspan="2" style="font-size: 12px; color: red;" attrs="{'invisible': [('payment_type_amex', '=', True)]}">
  68. <i class="fa fa-info-circle" title="AmEx"> To use AmEx you must make an activation request to PayPlug. This type of payment does not have a "test" mode.</i>
  69. </p>
  70. <hr style="size: 2px, color: grey;"/>
  71. </div>
  72. <label for="payment_type_bancontact"/>
  73. <div style="margin-bottom: 5px;">
  74. <field name="payment_type_bancontact"/>
  75. <span colspan="2" style="font-size: 12px; color: #ffb200;" attrs="{'invisible': [('payment_type_bancontact', '=', True)]}">
  76. <i class="fa fa-check" title="Bancontact disabled"/> <b><i> Bancontact is disabled</i></b>
  77. </span>
  78. <span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_bancontact', '=', False)]}">
  79. <i class="fa fa-check" title="Bancontact actived"/> <b> Bancontact is activated</b>
  80. </span>
  81. <div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_bancontact', '=', False)]}">
  82. <img src='/acquirer_payplug/static/src/img/icon/bancontact.png' style="max-height: 32px;" alt="icon"/>
  83. </div>
  84. <p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_bancontact', '=', True)]}">
  85. <i class="fa fa-pencil" title="Bancontact"> PayPlug online payments via credit cards Bancontact</i>
  86. </p>
  87. <p colspan="2" style="font-size: 12px; color: red;" attrs="{'invisible': [('payment_type_bancontact', '=', True)]}">
  88. <i class="fa fa-info-circle" title="Bancontact"> To use Bancontact you must make an activation request to PayPlug. This type of payment does not have a "test" mode.</i>
  89. </p>
  90. <hr style="size: 2px, color: grey;"/>
  91. </div>
  92. </group>
  93. </xpath>
  94. <xpath expr="//field[@name='available_country_ids']" position="attributes">
  95. <attribute name="attrs">{'readonly': [('code','=','payplug')]}</attribute>
  96. </xpath>
  97. <xpath expr="//field[@name='available_country_ids']" position="before">
  98. <i class="fa fa-info-circle" title="Country" colspan="2" attrs="{'invisible': [('code', '!=', 'payplug')]}"> The configuration of the authorized countries is to be carried out for each method of payment!</i>
  99. </xpath>
  100. <xpath expr="//field[@name='display_as']" position="attributes">
  101. <attribute name="attrs">{'invisible': [('code','=','payplug')]}</attribute>
  102. </xpath>
  103. <xpath expr="//group[@name='provider_credentials']" position="inside">
  104. <group attrs="{'invisible': [('code', '!=', 'payplug')]}">
  105. <field name="payplug_secret_test_key" attrs="{'required': [('code','=','payplug')]}" placeholder="e.g. sk_test_1YIpJK544lnWVCKnYlLlxY"/>
  106. <field name="payplug_secret_live_key" attrs="{'required': [('code','=','payplug')]}" placeholder="e.g. sk_live_1YIpJK544lnWVCKnYlLlxY" password="True"/>
  107. </group>
  108. </xpath>
  109. <xpath expr="//notebook/page[@name='credentials']" position="after">
  110. <page string="PayPlug settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_payplug', '=', False)]}">
  111. <group>
  112. <group string="Payment Form">
  113. <field name="payplug_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_payplug', '=', True)]}"/>
  114. </group>
  115. <group string="Availability">
  116. <field name="available_payplug_country_ids" widget="many2many_tags"
  117. placeholder="Select countries. Leave empty to use everywhere."
  118. options="{'no_open': True, 'no_create': True}"/>
  119. </group>
  120. </group>
  121. </page>
  122. <page string="PayLater settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_oney', '=', False)]}">
  123. <group>
  124. <group string="Payment Form">
  125. <field name="oney_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_oney', '=', True)]}"/>
  126. <field name="oney_information_message" attrs="{'required': [('code', '=', 'payplug'),('payment_type_oney', '=', True)]}"/>
  127. <field name="oney_footer_message" colspan="3" attrs="{'required': [('code', '=', 'payplug'),('payment_type_oney', '=', True)]}"/>
  128. </group>
  129. <group string="Availability">
  130. <field name="available_oney_country_ids" widget="many2many_tags"
  131. placeholder="Select countries. Leave empty to use everywhere."
  132. options="{'no_open': True, 'no_create': True}"/>
  133. </group>
  134. </group>
  135. </page>
  136. <page string="AmEx settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_amex', '=', False)]}">
  137. <group>
  138. <group string="Payment Form">
  139. <field name="amex_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_amex', '=', True)]}"/>
  140. </group>
  141. <group string="Availability">
  142. <field name="available_amex_country_ids" widget="many2many_tags"
  143. placeholder="Select countries. Leave empty to use everywhere."
  144. options="{'no_open': True, 'no_create': True}"/>
  145. </group>
  146. </group>
  147. </page>
  148. <page string="Bancontact settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_bancontact', '=', False)]}">
  149. <group>
  150. <group string="Payment Form">
  151. <field name="bancontact_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_bancontact', '=', True)]}"/>
  152. </group>
  153. <group string="Availability">
  154. <field name="available_bancontact_country_ids" widget="many2many_tags"
  155. placeholder="Select countries. Leave empty to use everywhere."
  156. options="{'no_open': True, 'no_create': True}"/>
  157. </group>
  158. </group>
  159. </page>
  160. </xpath>
  161. </field>
  162. </record>
  163. </data>
  164. </odoo>