mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-12-25 13:51:44 +00:00
45 lines
2.0 KiB
XML
45 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--
|
|
Copyright 2016 Akretion (http://www.akretion.com/)
|
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
-->
|
|
<flectra>
|
|
<record id="view_move_line_form" model="ir.ui.view">
|
|
<field name="name">account_payment_partner.move_line_form</field>
|
|
<field name="model">account.move.line</field>
|
|
<field name="inherit_id" ref="account.view_move_line_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='analytic_distribution']/.." position="after">
|
|
<group name="payments" string="Payments">
|
|
<field name="account_type" invisible="1" />
|
|
<field name="reconciled" invisible="1" />
|
|
<field
|
|
name="payment_mode_id"
|
|
force_save="1"
|
|
invisible="account_type not in ['asset_receivable', 'liability_payable']"
|
|
readonly="account_type not in ['asset_receivable', 'liability_payable'] or reconciled"
|
|
/>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="view_move_line_tree" model="ir.ui.view">
|
|
<field name="name">account.move.line.tree - Add payment mode</field>
|
|
<field name="model">account.move.line</field>
|
|
<field name="inherit_id" ref="account.view_move_line_tree" />
|
|
<field name="arch" type="xml">
|
|
<field name="date_maturity" position="after">
|
|
<field name="account_type" invisible="1" />
|
|
<field name="reconciled" invisible="1" />
|
|
<field
|
|
name="payment_mode_id"
|
|
optional="hide"
|
|
force_save="1"
|
|
invisible="account_type not in ['asset_receivable', 'liability_payable']"
|
|
readonly="account_type not in ['asset_receivable', 'liability_payable'] or reconciled"
|
|
/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</flectra>
|