[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
parent
e6a3b9ef5a
commit
8298b9dc18
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue