[FIX] account_cancel: re-open invoice assigned to useability/no one

lp bug: https://launchpad.net/bugs/807543 fixed

bzr revid: ara@tinyerp.com-20110726063959-lh8o2qjc697xe1jo
This commit is contained in:
ARA (OpenERP) 2011-07-26 12:09:59 +05:30
parent fbbebc5273
commit 2f198e8576
1 changed files with 25 additions and 0 deletions

View File

@ -12,5 +12,30 @@
</field>
</field>
</record>
<record id="invoice_form_inherit" model="ir.ui.view">
<field name="name">invoice.form.inherit</field>
<field name="model">account.invoice</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page/group/group/button[@name='%(account.action_account_state_open)d']" position="replace">
<button name='%(account.action_account_state_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert" groups="account.group_account_invoice"/>
</xpath>
</field>
</record>
<record id="invoice_supplier_form_inherit" model="ir.ui.view">
<field name="name">invoice.supplier.form.inherit</field>
<field name="model">account.invoice</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page/group/group/button[@name='%(account.action_account_state_open)d']" position="replace">
<button name='%(account.action_account_state_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert" groups="account.group_account_invoice"/>
</xpath>
</field>
</record>
</data>
</openerp>