[FIX] account_voucher: fix wording in Sales Receipt form for Cancel button + title

bzr revid: odo@openerp.com-20130225142035-s16slds2w2aa5xvc
This commit is contained in:
Olivier Dony
2013-02-25 15:20:35 +01:00
parent cd0714b78d
commit ee0670aaeb
@@ -59,17 +59,17 @@
<field name="name">account.voucher.sale.form</field>
<field name="model">account.voucher</field>
<field name="arch" type="xml">
<form string="Sale voucher" version="7.0">
<form string="Sales Receipt" version="7.0">
<header>
<button name="proforma_voucher" string="Validate" states="draft" class="oe_highlight"/>
<button name="%(act_pay_voucher)d" context="{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type="action" string="Validate Payment" attrs="{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}" class="oe_highlight"/>
<button name="cancel_voucher" string="Cancel Voucher" states="draft,proforma" />
<button name="cancel_voucher" string="Cancel Voucher" type="object" states="posted" confirm="Are you sure you want to cancel this receipt?"/>
<button name="cancel_voucher" string="Cancel Receipt" states="draft,proforma" />
<button name="cancel_voucher" string="Cancel Receipt" type="object" states="posted" confirm="Are you sure you want to cancel this receipt?"/>
<button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft"/>
<field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
</header>
<sheet string="Sales Receipts" >
<h1><label for="number" string="Sale Receipt"/> <field name="number" class="oe_inline" readonly="1"/></h1>
<sheet string="Sales Receipt" >
<h1><label for="number" string="Sales Receipt"/> <field name="number" class="oe_inline" readonly="1"/></h1>
<group>
<group>
<field name="type" invisible="True"/>