[IMP] make the statements views editable=top by default

And add an icon to allow users to navigate to the statement lines.
Currently it's not possible to open the statement form view. When editing the
view an error occurs, related with the recomputation of running balances.
This commit is contained in:
Jordi Ballester Alomar
2024-09-23 15:55:41 +02:00
committed by Víctor Martínez
parent 2cdfaa9a44
commit 67b7a6cd9a

View File

@@ -96,4 +96,23 @@
<field name="view_mode">tree,form,pivot,graph</field>
</record>
<record id="view_bank_statement_tree" model="ir.ui.view">
<field name="name">account.bank.statement.tree</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_tree" />
<field name="arch" type="xml">
<tree position="attributes">
<attribute name="editable">bottom</attribute>
</tree>
<field name="balance_end_real" position="after">
<button
name="action_open_statement_lines"
type="object"
title="Open Statement Lines"
icon="fa-folder-open-o"
/>
</field>
</field>
</record>
</odoo>