[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user