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.
 
 

133 lines
5.9 KiB

<odoo>
<data>
<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="id"/>
<field name="state"/>
<field name="create_date"/>
<field name="create_uid"/>
<!-- <field name="bank_deposit_date" string="bank deposit date" widget="badge" decoration-info="bank_deposit_date"/>
<field name="accounting_deposit_date" string="accounting deposit date" widget="badge" decoration-info="accounting_deposit_date"/> -->
<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>
<button type="object" name="validate" string="Validate"
class="oe_highlight" states="draft"/>
<button type="object" name="validated2draft"
string="Back to Draft" states="validated"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,validated,deposited_in_bank,deposited_in_accounting"/>
</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>
<notebook>
<page string="Donation Lines" name="lines">
<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="check_total"/>
<field name="partner_id"/>
<field name="donation_date"/>
<field name="state"/>
</tree>
</field>
<group name="total" class="oe_subtotal_footer oe_right">
<field
name="amount_total"
string="Total"
class="oe_subtotal_footer_separator"
/>
<field
name="payment_count"
string="Payments count"
class="oe_subtotal_footer_separator"
/>
</group>
</page>
</notebook>
</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>
<field name="context">{"search_default_not_deposited_in_bank":1}</field>
</record>
<record id="opendons.payment_batch_search" model="ir.ui.view">
<field name="name">opendons_payment_batch.search</field>
<field name="model">opendons_payment_batch</field>
<field name="arch" type="xml">
<search>
<filter string="Deposited in bank" name="deposited_in_bank" domain="[('bankdeposit_id', '!=', False)]"/>
<filter string="Not deposited in bank" name="not_deposited_in_bank" domain="[('bankdeposit_id', '=', False)]"/>
<filter string="Deposited in accounting" name="deposited_in_accounting" domain="[('accountingdeposit_id', '!=', False)]"/>
<filter string="Not deposited in accounting" name="not_deposited_in_accounting" domain="[('accountingdeposit_id', '=', False),('bankdeposit_id', '!=', False)]"/>
</search>
</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"/>
<!-- <menuitem id="payment_batch_bank_deposit" action="payment_batch_to_deposit_in_bank_action"
parent="payment_batch_title_menu" sequence="19"/> -->
</data>
</odoo>