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 form view -->
<record id="payment_transaction_form" model="ir.ui.view">
<field name="name">credit_pay Transaction Form</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_credit_pay_set_done"
class="oe_highlight"
invisible="provider_code != 'credit_pay' and capture_manually == False and state != 'pending'"/>
<button string="Confirm"
type="object"
name="action_credit_pay_set_done"
class="oe_highlight"
invisible="provider_code != 'credit_pay' and capture_manually == True and state != 'pending'"/>
<button string="Cancel"
type="object"
name="action_credit_pay_set_canceled"
invisible="provider_code != 'credit_pay' and state != 'pending'"/>
<button string="Set to Error"
type="object"
name="action_credit_pay_set_error"
invisible="provider_code != 'credit_pay' and state != 'pending'"/>
</header>
</field>
</record>
</odoo>