[IMP] account_cancel: "Reset to draft" on cash registers

Complement of the fix 6f355623f0
Adds the button for cash registers as well since the base view is
different than the one for bank statements.

Closes #8410
Closes #8342
This commit is contained in:
Antoine Huvelle 2015-09-07 15:28:03 +02:00 committed by Nicolas Martinelli
parent 10433efcf1
commit 79822ed30a
1 changed files with 11 additions and 0 deletions

View File

@ -44,6 +44,17 @@
</xpath>
</field>
</record>
<record id="bank_statement_draft_form_inherit2" model="ir.ui.view">
<field name="name">bank.statement.draft.form.inherit2</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form2"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='button_cancel']" position="after">
<button name="button_draft" states="confirm" string="Reset to New" type="object"/>
</xpath>
</field>
</record>
<record id="bank_statement_cancel_form_inherit" model="ir.ui.view">
<field name="name">bank.statement.cancel.form.inherit</field>