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.
 
 
 
 
 

71 lines
3.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Wallet transaction model view-->
<record id="wallet_transaction_view_tree" model="ir.ui.view">
<field name="name">
wallet.transaction.view.tree.pos.customer.wallet.management
</field>
<field name="model">wallet.transaction</field>
<field name="arch" type="xml">
<tree string="wallet transaction" create="0" delete="0">
<field name="name"/>
<field name="type"/>
<field name="customer"/>
<field name="pos_order"/>
<field name="amount"/>
<field name="currency"/>
</tree>
</field>
</record>
<record id="wallet_transaction_view_form" model="ir.ui.view">
<field name="name">
wallet.transaction.view.form.pos.customer.wallet.management
</field>
<field name="model">wallet.transaction</field>
<field name="arch" type="xml">
<form string="wallet transaction">
<sheet>
<group>
<field name="name" readonly="True"/>
<field name="type" readonly="True"/>
<field name="customer" readonly="True"/>
<field name="pos_order" readonly="True"/>
<field name="amount" readonly="True"/>
<field name="currency" readonly="True"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="wallet_transaction_view_search" model="ir.ui.view">
<field name="name">wallet.transaction.view.search</field>
<field name="model">wallet.transaction</field>
<field name="arch" type="xml">
<search string="Search Transaction">
<field name="type"/>
<field name="customer"/>
<filter string="Credit" name="type"
domain="[('type', '=', 'Credit')]"/>
<filter string="Debit" name="type"
domain="[('type', '=', 'Debit')]"/>
<group string="Group By">
<filter string="Wallet Type Wise" name="group_by_type"
context="{'group_by': 'type'}"/>
<filter string="Customer Wise" name="group_by_customer"
context="{'group_by': 'customer'}"/>
</group>
</search>
</field>
</record>
<record id="wallet_transaction_action"
model="ir.actions.act_window">
<field name="name">Wallet Transaction</field>
<field name="res_model">wallet.transaction</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="wallet_transaction_menu" name="Wallet Management"
parent="point_of_sale.menu_point_root">
<menuitem id="wallet_transaction_menu_action"
action="wallet_transaction_action"/>
</menuitem>
</odoo>