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.
 
 
 
 
 

36 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- A form view for the "wallet amount" model with fields for "partner_id" and-->
<!-- "amount and proceed button.-->
<record id="wallet_amount_view_form" model="ir.ui.view">
<field name="name">wallet.amount.view.form</field>
<field name="model">wallet.amount</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="partner_id"/>
<field name="amount"/>
</group>
<footer>
<button string="Proceed" class="btn-primary"
type="object" name="apply_wallet_amount"/>
</footer>
</sheet>
</form>
</field>
</record>
<!-- An action that opens a window for the "wallet amount" model.-->
<record id="wallet_amount_action" model="ir.actions.act_window">
<field name="name">Customer Wallet Amount</field>
<field name="res_model">wallet.amount</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="wallet_amount_view_form"/>
<field name="target">new</field>
</record>
<!-- A menu item named "Add wallet Amount" added to the
"account.menu_finance_receivables" parent menu.-->
<menuitem id="menu_wallet_amount_action" name="Add wallet Amount"
parent="account.menu_finance_receivables"
action="wallet_amount_action"/>
</odoo>