[FIX] account_cancel: reload whole bank statement on transaction canceling

When canceling a bank.statement.line of a bank.statement
ready to be closed
(all lines reconciled,
reconcile button hidden and close button visible)

The form wasn't reloaded, and the reconcile button
was not displayed after having cancel the statement line

opw-632063
This commit is contained in:
Denis Ledoux 2015-04-22 18:20:49 +02:00
parent 84e10ad03b
commit 8c40bdd410
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form"/>
<field name="arch" type="xml">
<field name="line_ids" position="attributes">
<attribute name="options">{'reload_on_button': true}</attribute>
</field>
<xpath expr="//field[@name='bank_account_id']" position="after">
<button name="cancel" attrs="{'invisible': [('journal_entry_id', '=', False)]}" string="Cancel" type="object" icon="gtk-undo"/>
</xpath>