<?xml version="1.0"?>
<form string="Payment Transactions" create="false" edit="false">
                <header>
                    <button type="object" name="action_capture" states="authorized" string="Capture Transaction" class="oe_highlight"/>
                    <button type="object" name="action_void" states="authorized" string="Void Transaction" confirm="Are you sure you want to void the authorized transaction? This action can't be undone."/>
                    <field name="state" widget="statusbar"/>
                </header>
                <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button name="action_view_refunds" type="object" class="oe_stat_button" icon="fa-money" attrs="{'invisible': [('refunds_count', '=', 0)]}">
                            <field name="refunds_count" widget="statinfo" string="Refunds"/>
                        </button>
                    </div>
                    <group>
                        <group name="transaction_details">
                            <field name="reference"/>
                            <field name="source_transaction_id" attrs="{'invisible': [('source_transaction_id', '=', False)]}"/>
                            <field name="amount"/>
                            <field name="fees" attrs="{'invisible': [('fees', '=', 0.0)]}"/>
                            <field name="currency_id" invisible="1"/>
                            <field name="provider_id"/>
                            <field name="company_id" groups="base.group_multi_company"/>
                            <!-- Used by some provider-specific views -->
                            <field name="provider_code" invisible="1"/>
                            <field name="provider_reference"/>
                            <field name="token_id" attrs="{'invisible': [('token_id', '=', False)]}"/>
                            <field name="create_date"/>
                            <field name="last_state_change"/>
                        </group>
                        <group name="transaction_partner">
                            <field name="partner_id" widget="res_partner_many2one"/>
                            <label for="partner_address" string="Address"/>
                            <div class="o_address_format">
                                <field name="partner_address" placeholder="Address" class="o_address_street"/>
                                <field name="partner_city" placeholder="City" class="o_address_city"/>
                                <field name="partner_state_id" placeholder="State" class="o_address_state" options="{'no_open': True}"/>
                                <field name="partner_zip" placeholder="ZIP" class="o_address_zip"/>
                                <field name="partner_country_id" placeholder="Country" class="o_address_country" options="{'no_open': True}"/>
                            </div>
                            <field name="partner_email" widget="email"/>
                            <field name="partner_phone" widget="phone"/>
                            <field name="partner_lang"/>
                        </group>
                    </group>
                    <group string="Message" attrs="{'invisible': [('state_message', '=', False)]}">
                        <field name="state_message" nolabel="1" colspan="2"/>
                    </group>
                </sheet>
            </form>
        