<odoo>
|
|
<data>
|
|
<template id="assets_backend" name="js assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<script
|
|
type="text/javascript"
|
|
src="/opendons/static/src/js/payment_batch.js">
|
|
</script>
|
|
<!-- <link
|
|
href="/custom_module_name/static/src/css/filenmae.css"
|
|
rel="stylesheet"
|
|
type="text/css"/> -->
|
|
</xpath>
|
|
</template>
|
|
|
|
<record model="ir.ui.view" id="opendons.payment_batch">
|
|
<field name="name">opendons_payment_batch list</field>
|
|
<field name="model">opendons_payment_batch</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="create_date"/>
|
|
<field name="create_uid"/>
|
|
<field name="payment_mode_id"/>
|
|
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record model="ir.ui.view" id="opendons.payment_batch_form">
|
|
<field name="name">opendons_payment_batch Form</field>
|
|
<field name="model">opendons_payment_batch</field>
|
|
<field name="arch" type="xml">
|
|
<form string="payment_batch_form">
|
|
<header>
|
|
</header>
|
|
<sheet>
|
|
<group name="payment_batch">
|
|
|
|
<field name="create_date"/>
|
|
<field name="create_uid"/>
|
|
<field name="payment_mode_id"/>
|
|
<field name="input_mode"/>
|
|
<field name="assignment"/>
|
|
<field name="donation_amount" attrs="{'invisible':[('assignment','not in','single')]}"/>
|
|
<field name="product_id" attrs="{'invisible':[('assignment','not in','single')],'required':[('assignment','=','single')]}"/>
|
|
<br></br>
|
|
<br></br>
|
|
<field name="payment_input" style="background:#7CC4F4;" attrs="{'invisible':[('input_mode','in','manual')]}"/>
|
|
<field name="partner_id"/>
|
|
<field name="operation_id"/>
|
|
<field name="segment_id"/>
|
|
|
|
<field name="company_id" invisible="1"/>
|
|
|
|
</group>
|
|
<button name="action_add_payment" type="object" string="create donation" attrs="{'invisible':['|','|','|',('payment_mode_id','=',False),('input_mode','=',False),('assignment','=',False),('partner_id','=',False)]}" class="oe_highlight oe_edit_only"/>
|
|
<field name="donation_ids">
|
|
<tree create="0">
|
|
<field name="number"/>
|
|
<field name="partner_id"/>
|
|
<field name="donation_date"/>
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
</field>
|
|
|
|
|
|
|
|
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="payment_batch_action">
|
|
<field name="name">Payment batch</field>
|
|
<field name="res_model">opendons_payment_batch</field>
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
|
<menuitem id="payment_batch_top_menu" sequence="16"
|
|
name="Payment batch" web_icon="opendons,static/description/payment_batch.png"/>
|
|
|
|
<menuitem id="payment_batch_title_menu" parent="payment_batch_top_menu"
|
|
sequence="15" name="Payments batchs"/>
|
|
|
|
<menuitem id="payment_batch_menu" action="payment_batch_action"
|
|
parent="payment_batch_title_menu" sequence="10"/>
|
|
|
|
<menuitem id="payment_batch_account_payment_order" action="account_payment_order.account_payment_order_inbound_action"
|
|
parent="payment_batch_title_menu" sequence="20"/>
|
|
|
|
</data>
|
|
</odoo>
|