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.
 
 
 
 
 

32 lines
1.6 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Payment transaction view -->
<record id="payment_transaction_form" model="ir.ui.view">
<field name="name">payment.transaction.view.form.inherit.advanced.payment.cybersource</field>
<field name="model">payment.transaction</field>
<field name="inherit_id" ref="payment.payment_transaction_form"/>
<field name="arch" type="xml">
<header position="inside">
<field name="capture_manually" invisible="1"/>
<button string="Authorize"
type="object"
name="action_cybersource_set_done"
class="oe_highlight"
invisible="provider_code != 'cybersource' or not capture_manually or state != 'pending'"/>
<button string="Confirm"
type="object"
name="action_cybersource_set_done"
class="oe_highlight"
invisible="provider_code != 'cybersource' or not capture_manually or state != 'pending'"/>
<button string="Cancel"
type="object"
name="action_cybersource_set_canceled"
invisible="provider_code != 'cybersource' or state != 'pending'"/>
<button string="Set to Error"
type="object"
name="action_cybersource_set_error"
invisible="provider_code != 'demo' or state != 'pending'"/>
</header>
</field>
</record>
</odoo>