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.
 
 
 
 

168 lines
12 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- FORM VIEW ACQUIRER PAYPLUG -->
<record id="payment_provider_form_inherit" model="ir.ui.view">
<field name="name">payment.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="//field[@name='name']" position="attributes">
<attribute name="attrs">{'readonly': [('code','=','payplug')]}</attribute>
</xpath>
<xpath expr="//group[@name='payment_state']" position="after">
<group attrs="{'invisible': [('code', '!=', 'payplug')]}">
<!-- PAYMENT PAYPLUG -->
<label for="payment_type_payplug"/>
<div style="margin-bottom: 5px;">
<field name="payment_type_payplug" readonly="1"/>
<span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_payplug', '=', False)]}">
<i class="fa fa-check" title="PayPlug actived"/> <b> PayPlug is activated</b>
</span>
<div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_payplug', '=', False)]}">
<img src='/acquirer_payplug/static/src/img/icon/icon-visa.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
<img src='/acquirer_payplug/static/src/img/icon/icon-mastercard.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
<img src='/acquirer_payplug/static/src/img/icon/icon-cb.png' style="max-height: 32px;" alt="icon"/>
</div>
<p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_payplug', '=', True)]}">
<i class="fa fa-pencil" title="PayPlug actived"> PayPlug online payments via credit cards.</i>
</p>
<hr style="size: 2px, color: grey;"/>
</div>
<label for="payment_type_oney"/>
<div style="margin-bottom: 5px;">
<field name="payment_type_oney"/>
<span colspan="2" style="font-size: 12px; color: #ffb200;" attrs="{'invisible': [('payment_type_oney', '=', True)]}">
<i class="fa fa-check" title="actived"/> <b><i> PayLater is disabled</i></b>
</span>
<span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_oney', '=', False)]}">
<i class="fa fa-check" title="PayLater actived"/> <b> PayLater is activated</b>
</span>
<div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_oney', '=', False)]}">
<img src='/acquirer_payplug/static/src/img/icon/icon-visa.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
<img src='/acquirer_payplug/static/src/img/icon/icon-mastercard.png' style="max-height: 32px; margin-right: 4px;" alt="icon"/>
<img src='/acquirer_payplug/static/src/img/icon/icon-cb.png' style="max-height: 32px;" alt="icon"/>
</div>
<p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_oney', '=', True)]}">
<i class="fa fa-pencil" title="text"> PayLater online payments via credit cards 3x or 4x.</i>
</p>
<hr style="size: 2px, color: grey;"/>
</div>
<!-- PAYMENT AMEX -->
<label for="payment_type_amex"/>
<div style="margin-bottom: 5px;">
<field name="payment_type_amex"/>
<span colspan="2" style="font-size: 12px; color: #ffb200;" attrs="{'invisible': [('payment_type_amex', '=', True)]}">
<i class="fa fa-check" title="AmEx disabled"/> <b><i> AmEx is disabled</i></b>
</span>
<span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_amex', '=', False)]}">
<i class="fa fa-check" title="AmEx actived"/> <b> AmEx is activated</b>
</span>
<div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_amex', '=', False)]}">
<img src='/acquirer_payplug/static/src/img/icon/american_express.png' style="max-height: 32px;" alt="icon"/>
</div>
<p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_amex', '=', True)]}">
<i class="fa fa-pencil" title="AmEx"> PayPlug online payments via credit cards American express.</i>
</p>
<p colspan="2" style="font-size: 12px; color: red;" attrs="{'invisible': [('payment_type_amex', '=', True)]}">
<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>
</p>
<hr style="size: 2px, color: grey;"/>
</div>
<label for="payment_type_bancontact"/>
<div style="margin-bottom: 5px;">
<field name="payment_type_bancontact"/>
<span colspan="2" style="font-size: 12px; color: #ffb200;" attrs="{'invisible': [('payment_type_bancontact', '=', True)]}">
<i class="fa fa-check" title="Bancontact disabled"/> <b><i> Bancontact is disabled</i></b>
</span>
<span colspan="2" style="font-size: 12px; color: green;" attrs="{'invisible': [('payment_type_bancontact', '=', False)]}">
<i class="fa fa-check" title="Bancontact actived"/> <b> Bancontact is activated</b>
</span>
<div colspan="2" style="margin-bottom: 2px;" attrs="{'invisible': [('payment_type_bancontact', '=', False)]}">
<img src='/acquirer_payplug/static/src/img/icon/bancontact.png' style="max-height: 32px;" alt="icon"/>
</div>
<p colspan="2" style="font-size: 12px; color: gray;" attrs="{'invisible': [('payment_type_bancontact', '=', True)]}">
<i class="fa fa-pencil" title="Bancontact"> PayPlug online payments via credit cards Bancontact</i>
</p>
<p colspan="2" style="font-size: 12px; color: red;" attrs="{'invisible': [('payment_type_bancontact', '=', True)]}">
<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>
</p>
<hr style="size: 2px, color: grey;"/>
</div>
</group>
</xpath>
<xpath expr="//field[@name='available_country_ids']" position="attributes">
<attribute name="attrs">{'readonly': [('code','=','payplug')]}</attribute>
</xpath>
<xpath expr="//field[@name='available_country_ids']" position="before">
<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>
</xpath>
<xpath expr="//field[@name='display_as']" position="attributes">
<attribute name="attrs">{'invisible': [('code','=','payplug')]}</attribute>
</xpath>
<xpath expr="//group[@name='provider_credentials']" position="inside">
<group attrs="{'invisible': [('code', '!=', 'payplug')]}">
<field name="payplug_secret_test_key" attrs="{'required': [('code','=','payplug')]}" placeholder="e.g. sk_test_1YIpJK544lnWVCKnYlLlxY"/>
<field name="payplug_secret_live_key" attrs="{'required': [('code','=','payplug')]}" placeholder="e.g. sk_live_1YIpJK544lnWVCKnYlLlxY" password="True"/>
</group>
</xpath>
<xpath expr="//notebook/page[@name='credentials']" position="after">
<page string="PayPlug settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_payplug', '=', False)]}">
<group>
<group string="Payment Form">
<field name="payplug_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_payplug', '=', True)]}"/>
</group>
<group string="Availability">
<field name="available_payplug_country_ids" widget="many2many_tags"
placeholder="Select countries. Leave empty to use everywhere."
options="{'no_open': True, 'no_create': True}"/>
</group>
</group>
</page>
<page string="PayLater settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_oney', '=', False)]}">
<group>
<group string="Payment Form">
<field name="oney_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_oney', '=', True)]}"/>
<field name="oney_information_message" attrs="{'required': [('code', '=', 'payplug'),('payment_type_oney', '=', True)]}"/>
<field name="oney_footer_message" colspan="3" attrs="{'required': [('code', '=', 'payplug'),('payment_type_oney', '=', True)]}"/>
</group>
<group string="Availability">
<field name="available_oney_country_ids" widget="many2many_tags"
placeholder="Select countries. Leave empty to use everywhere."
options="{'no_open': True, 'no_create': True}"/>
</group>
</group>
</page>
<page string="AmEx settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_amex', '=', False)]}">
<group>
<group string="Payment Form">
<field name="amex_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_amex', '=', True)]}"/>
</group>
<group string="Availability">
<field name="available_amex_country_ids" widget="many2many_tags"
placeholder="Select countries. Leave empty to use everywhere."
options="{'no_open': True, 'no_create': True}"/>
</group>
</group>
</page>
<page string="Bancontact settings" attrs="{'invisible': ['|',('code', '!=', 'payplug'), ('payment_type_bancontact', '=', False)]}">
<group>
<group string="Payment Form">
<field name="bancontact_display_as" attrs="{'required': [('code', '=', 'payplug'),('payment_type_bancontact', '=', True)]}"/>
</group>
<group string="Availability">
<field name="available_bancontact_country_ids" widget="many2many_tags"
placeholder="Select countries. Leave empty to use everywhere."
options="{'no_open': True, 'no_create': True}"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
</data>
</odoo>