53 lines
2.3 KiB
XML
53 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2015-2024 Akretion France (https://www.akretion.com/)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
<record id="view_move_line_tree" model="ir.ui.view">
|
|
<field name="model">account.move.line</field>
|
|
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
|
<field name="arch" type="xml">
|
|
<list position="inside">
|
|
<button title="View Journal Entry Form" type="object" name="show_account_move_form" icon="fa-arrow-right"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_account_move_line_filter" model="ir.ui.view">
|
|
<field name="name">account_usability.account_move_line_search</field>
|
|
<field name="model">account.move.line</field>
|
|
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
|
<field name="arch" type="xml">
|
|
<field name="partner_id" position="after">
|
|
<field name="matching_number" />
|
|
<field name="debit" filter_domain="['|', ('debit', '=', self), ('credit', '=', self)]" string="Debit or Credit"/>
|
|
</field>
|
|
<filter name="reconcilable_account" position="before">
|
|
<filter name="reconciled" string="Fully Reconciled" domain="[('account_id.reconcile', '=', True), ('full_reconcile_id', '!=', False)]"/>
|
|
</filter>
|
|
<filter name="reconcilable_account" position="attributes">
|
|
<attribute name="string">Unreconciled or Partially Reconciled</attribute>
|
|
</filter>
|
|
<field name="name" position="attributes">
|
|
<attribute name="string">Label, Reference, Account or Partner</attribute>
|
|
</field>
|
|
<field name="partner_id" position="attributes">
|
|
<attribute name="domain">['|', ('parent_id', '=', False), ('is_company', '=', True)]</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Inherit action called from button of account.account form view
|
|
Make it similar to standard "Journal Items" menu account.action_account_moves_all_a -->
|
|
<record id="account.action_move_line_select" model="ir.actions.act_window">
|
|
<field name="domain">[('display_type', 'not in', ('line_section', 'line_note'))]</field>
|
|
<field name="view_id" ref="account.view_move_line_tree"/>
|
|
<field name="view_mode">list,pivot,graph,kanban</field>
|
|
</record>
|
|
|
|
</odoo>
|