bank-payment/account_payment_partner/views/account_move_view.xml

66 lines
3.2 KiB
XML
Raw Normal View History

2021-03-12 16:21:19 +00:00
<?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"
2023-05-19 08:19:51 +00:00
attrs="{'readonly': [('has_reconciled_items', '=', True)], 'invisible': [('move_type', 'not in', ('out_invoice','out_refund','in_invoice','in_refund'))]}"
2021-03-12 16:21:19 +00:00
/>
2023-05-19 08:19:51 +00:00
<field name="has_reconciled_items" invisible="1" />
2021-03-12 16:21:19 +00:00
<field name="commercial_partner_id" 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>
<field name="partner_bank_id" position="attributes">
<attribute name="domain">
[('partner_id', '=', partner_bank_filter_type_domain),
'|',('company_id', '=', company_id),('company_id', '=', False)]
</attribute>
<attribute name="attrs">
2022-06-29 18:32:58 +00:00
{'required': [('bank_account_required', '=', True),('move_type', 'in', ('in_invoice', 'in_refund'))],
'readonly': [('state', '!=', 'draft')],
'invisible': [('move_type', '=', 'entry')]}
2021-03-12 16:21:19 +00:00
</attribute>
<attribute name="context">
{'default_partner_id':commercial_partner_id}
</attribute>
</field>
</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">
2021-11-07 03:11:01 +00:00
<field name="payment_mode_id" optional="hide" />
2021-03-12 16:21:19 +00:00
</field>
</field>
</record>
</flectra>