[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.
pull/739/head
Jordi Ballester Alomar 2024-09-23 15:55:41 +02:00 committed by Duy (Đỗ Anh)
parent e6a3b9ef5a
commit 8298b9dc18
1 changed files with 19 additions and 0 deletions

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>