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.
 
 
 
 
 

35 lines
1.8 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"
attrs="{'invisible': ['|', '|', ('provider_code', '!=', 'cybersource'),
('capture_manually', '=', False), ('state', '!=', 'pending')]}"/>
<button string="Confirm"
type="object"
name="action_cybersource_set_done"
class="oe_highlight"
attrs="{'invisible': ['|', '|', ('provider_code', '!=', 'cybersource'), ('capture_manually', '=', True), ('state', '!=', 'pending')]}"/>
<button string="Cancel"
type="object"
name="action_cybersource_set_canceled"
attrs="{'invisible': ['|', ('provider_code', '!=', 'cybersource'), ('state', '!=', 'pending')]}"/>
<button string="Set to Error"
type="object"
name="action_cybersource_set_error"
attrs="{'invisible': ['|', ('provider_code', '!=', 'demo'), ('state', '!=', 'pending')]}"/>
</header>
</field>
</record>
</odoo>