mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-11-25 07:02:06 +00:00
83 lines
3.8 KiB
XML
83 lines
3.8 KiB
XML
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<!--
|
||
|
Copyright 2014-16 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||
|
-->
|
||
|
<flectra>
|
||
|
<record id="view_account_invoice_filter" model="ir.ui.view">
|
||
|
<field name="name">account_payment_partner.account_invoice_search</field>
|
||
|
<field name="model">account.move</field>
|
||
|
<field name="inherit_id" ref="account.view_account_invoice_filter" />
|
||
|
<field name="arch" type="xml">
|
||
|
<filter name="status" position="after">
|
||
|
<filter
|
||
|
string="Payment Mode"
|
||
|
name="payment_mode_groupby"
|
||
|
context="{'group_by': 'payment_mode_id'}"
|
||
|
/>
|
||
|
</filter>
|
||
|
</field>
|
||
|
</record>
|
||
|
<record id="view_move_form" model="ir.ui.view">
|
||
|
<field name="name">account_payment_partner.view_move_form</field>
|
||
|
<field name="model">account.move</field>
|
||
|
<field name="inherit_id" ref="account.view_move_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="partner_bank_id" position="before">
|
||
|
<field
|
||
|
name="payment_mode_id"
|
||
|
domain="[('payment_type', '=', payment_mode_filter_type_domain), ('company_id', '=', company_id)]"
|
||
|
widget="selection"
|
||
|
readonly="has_reconciled_items"
|
||
|
invisible="move_type not in ['out_invoice','out_refund','in_invoice','in_refund']"
|
||
|
/>
|
||
|
<field name="has_reconciled_items" invisible="1" />
|
||
|
<field name="bank_account_required" invisible="1" />
|
||
|
<field name="payment_mode_filter_type_domain" invisible="1" />
|
||
|
<field name="partner_bank_filter_type_domain" invisible="1" />
|
||
|
</field>
|
||
|
<xpath
|
||
|
expr="//group[@id='header_right_group']//field[@name='partner_bank_id']"
|
||
|
position="attributes"
|
||
|
>
|
||
|
<attribute name="context">
|
||
|
{'default_partner_id':commercial_partner_id}
|
||
|
</attribute>
|
||
|
<attribute name="domain">
|
||
|
[('partner_id', '=', partner_bank_filter_type_domain),
|
||
|
'|',('company_id', '=', company_id),('company_id', '=', False)]
|
||
|
</attribute>
|
||
|
<attribute
|
||
|
name="required"
|
||
|
>bank_account_required and move_type in ['in_invoice', 'in_refund']</attribute>
|
||
|
<attribute name="readonly">state != 'draft'</attribute>
|
||
|
<attribute
|
||
|
name="invisible"
|
||
|
>move_type not in ['in_invoice', 'in_refund', 'in_receipt']</attribute>
|
||
|
</xpath>
|
||
|
<xpath
|
||
|
expr="//page[@id='other_tab']//field[@name='partner_bank_id']"
|
||
|
position="attributes"
|
||
|
>
|
||
|
<attribute name="context">
|
||
|
{'default_partner_id':commercial_partner_id}
|
||
|
</attribute>
|
||
|
<attribute name="domain">
|
||
|
[('partner_id', '=', partner_bank_filter_type_domain),
|
||
|
'|',('company_id', '=', company_id),('company_id', '=', False)]
|
||
|
</attribute>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
<record id="view_invoice_tree" model="ir.ui.view">
|
||
|
<field name="name">account_payment_partner.view_invoice_tree</field>
|
||
|
<field name="model">account.move</field>
|
||
|
<field name="inherit_id" ref="account.view_invoice_tree" />
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="amount_residual_signed" position="after">
|
||
|
<field name="payment_mode_id" optional="hide" />
|
||
|
</field>
|
||
|
</field>
|
||
|
</record>
|
||
|
</flectra>
|