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.
 
 
 
 
 

29 lines
1.4 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Inheriting providers to add cybersource provider fields-->
<record id="payment_provider_form" model="ir.ui.view">
<field name="name">
payment.provider.view.form.inherit.advanced.payment.cybersource
</field>
<field name="model">payment.acquirer</field>
<field name="inherit_id" ref="payment.payment_acquirer_form"/>
<field name="arch" type="xml">
<xpath expr='//group[@name="acquirer"]' position='inside'>
<group attrs="{'invisible': [('provider', '!=', 'cybersource')]}">
<field name="cyber_merchant"
string="Merchant ID"
attrs="{'required': [('provider', '=', 'cybersource'),
('state', '!=', 'disabled')]}"/>
<field name="cyber_key"
string="key" password="1"
attrs="{'required': [('provider', '=', 'cybersource'),
('state', '!=', 'disabled')]}"/>
<field name="cyber_secret_key"
string="Secret key" password="1"
attrs="{'required': [('provider', '=', 'cybersource'),
('state', '!=', 'disabled')]}"/>
</group>
</xpath>
</field>
</record>
</odoo>