flectra/addons/sale_payment/views/payment_views.xml

19 lines
912 B
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="payment_transaction_action_pending" model="ir.actions.act_window">
<field name="name">Pending Payment Transactions</field>
<field name="res_model">payment.transaction</field>
<field name='view_type'>form</field>
<field name='view_mode'>tree,form</field>
<field name='domain'>[('sale_order_id.team_id', '=', active_id), ('state', '=', 'pending')]</field>
</record>
<record id="payment_transaction_action_authorized" model="ir.actions.act_window">
<field name="name">Authorized Payment Transactions</field>
<field name="res_model">payment.transaction</field>
<field name='view_type'>form</field>
<field name='view_mode'>tree,form</field>
<field name='domain'>[('sale_order_id.team_id', '=', active_id), ('state', '=', 'authorized')]</field>
</record>
</odoo>