mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-22 13:42:07 +00:00
169 lines
8.2 KiB
XML
169 lines
8.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
|
|
|
|
<record id="account_payment_order_form" model="ir.ui.view">
|
|
<field name="name">account.payment.order.form</field>
|
|
<field name="model">account.payment.order</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Payment Order">
|
|
<header>
|
|
<button name="%(account_payment_line_create_action)d" type="action"
|
|
string="Create Payment Lines from Journal Items"
|
|
states="draft" class="oe_highlight" />
|
|
<button name="draft2open" type="object" states="draft"
|
|
string="Confirm Payments" class="oe_highlight"/>
|
|
<button name="open2generated" type="object" states="open"
|
|
string="Generate Payment File" class="oe_highlight"/>
|
|
<button name="generated2uploaded" type="object" states="generated"
|
|
string="File Successfully Uploaded" class="oe_highlight"/>
|
|
<button name="cancel2draft" type="object" states="cancel"
|
|
string="Back to Draft" />
|
|
<button name="action_cancel" type="object" states="draft,open,generated"
|
|
string="Cancel Payments"/>
|
|
<button name="action_done_cancel" type="object" states="uploaded"
|
|
string="Cancel Payments"/>
|
|
<button name="action_done" type="object" states="uploaded"
|
|
string="Payments Done"/>
|
|
<field name="state" widget="statusbar"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<label for="name" class="oe_edit_only"/>
|
|
<h1><field name="name"/></h1>
|
|
</div>
|
|
<group name="head" col="2">
|
|
<group name="head-left">
|
|
<field name="payment_mode_id"
|
|
domain="[('payment_order_ok', '=', True), ('payment_type', '=', payment_type)]"
|
|
widget="selection"/>
|
|
<field name="journal_id" widget="selection"/>
|
|
<field name="bank_account_link" invisible="1"/>
|
|
<field name="company_partner_bank_id"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="payment_type" invisible="0"/>
|
|
<field name="bank_line_count"/>
|
|
</group>
|
|
<group name="head-right">
|
|
<field name="date_prefered"/>
|
|
<field name="date_scheduled"
|
|
attrs="{'invisible': [('date_prefered', '!=', 'fixed')], 'required': [('date_prefered', '=', 'fixed')]}"/>
|
|
<field name="date_generated"/>
|
|
<field name="generated_user_id"/>
|
|
<field name="date_uploaded"/>
|
|
<field name="description"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="payment-lines" string="Transactions">
|
|
<field name="payment_line_ids"
|
|
context="{'default_payment_type': payment_type}"/>
|
|
</page>
|
|
<page name="bank-payment-lines" string="Bank Payment Lines">
|
|
<field name="bank_line_ids"
|
|
context="{'default_payment_type': payment_type}"/>
|
|
</page>
|
|
<page name="moves" string="Transfer Journal Entries">
|
|
<field name="move_ids"/>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_payment_order_tree" model="ir.ui.view">
|
|
<field name="name">account.payment.order.tree</field>
|
|
<field name="model">account.payment.order</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Payment Orders" colors="blue: state=='draft'; green: state=='generated'; gray: state=='cancel'; red: state=='open'" decoration-muted="state=='cancel'">
|
|
<field name="name"/>
|
|
<field name="payment_mode_id"/>
|
|
<field name="journal_id"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
<field name="date_uploaded"/>
|
|
<field name="description"/>
|
|
<field name="total_company_currency" sum="Total Company Currency"/>
|
|
<field name="company_currency_id" invisible="1"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_payment_order_search" model="ir.ui.view">
|
|
<field name="name">account.payment.order.search</field>
|
|
<field name="model">account.payment.order</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Payment Orders">
|
|
<field name="description" filter_domain="['|', ('name', 'ilike', self), ('description', 'ilike', self)]" string="Name or Description"/>
|
|
<field name="journal_id"/>
|
|
<filter name="draft" string="Draft" domain="[('state', '=', 'draft')]"/>
|
|
<filter name="open" string="Confirmed" domain="[('state', '=', 'open')]"/>
|
|
<filter name="generated" string="File Generated" domain="[('state', '=', 'generated')]"/>
|
|
<filter name="uploaded" string="File Uploaded" domain="[('state', '=', 'uploaded')]"/>
|
|
<group string="Group By" name="groupby">
|
|
<filter name="payment_mode_groupby" string="Payment Mode" context="{'group_by': 'payment_mode_id'}"/>
|
|
<filter name="journal_groupby" string="Bank Journal" context="{'group_by': 'journal_id'}"/>
|
|
<filter name="date_generated_groupby" string="File Generation Date" context="{'group_by': 'date_generated'}"/>
|
|
<filter name="date_uploaded_groupby" string="File Upload Date" context="{'group_by': 'date_uploaded'}"/>
|
|
<filter name="state_groupby" string="State" context="{'group_by': 'state'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_payment_order_graph" model="ir.ui.view">
|
|
<field name="name">account.payment.order.graph</field>
|
|
<field name="model">account.payment.order</field>
|
|
<field name="arch" type="xml">
|
|
<graph string="Payment Orders">
|
|
<field name="date_uploaded" type="row" interval="month"/>
|
|
<field name="total_company_currency" type="measure"/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_payment_order_pivot" model="ir.ui.view">
|
|
<field name="name">account.payment.order.pivot</field>
|
|
<field name="model">account.payment.order</field>
|
|
<field name="arch" type="xml">
|
|
<pivot string="Payment Orders">
|
|
<field name="date_uploaded" type="row" interval="month"/>
|
|
<field name="total_company_currency" type="measure"/>
|
|
</pivot>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="account_payment_order_outbound_action" model="ir.actions.act_window">
|
|
<field name="name">Payment Orders</field>
|
|
<field name="res_model">account.payment.order</field>
|
|
<field name="view_mode">tree,form,pivot,graph</field>
|
|
<field name="domain">[('payment_type', '=', 'outbound')]</field>
|
|
<field name="context">{'default_payment_type': 'outbound'}</field>
|
|
</record>
|
|
|
|
<record id="account_payment_order_inbound_action" model="ir.actions.act_window">
|
|
<field name="name">Debit Orders</field>
|
|
<field name="res_model">account.payment.order</field>
|
|
<field name="view_mode">tree,form,pivot,graph</field>
|
|
<field name="domain">[('payment_type', '=', 'inbound')]</field>
|
|
<field name="context">{'default_payment_type': 'inbound'}</field>
|
|
</record>
|
|
|
|
<menuitem id="payment_root" name="Payments" parent="account.menu_finance"
|
|
sequence="7"/>
|
|
|
|
<menuitem id="account_payment_order_outbound_menu" action="account_payment_order_outbound_action"
|
|
parent="payment_root" sequence="10"/>
|
|
|
|
<menuitem id="account_payment_order_inbound_menu" action="account_payment_order_inbound_action"
|
|
parent="payment_root" sequence="20"/>
|
|
|
|
|
|
</flectra>
|