[FIX] hr_timesheet_invoice: show the 'Open' button when the state is draft for the...
authorStephane Wirtel <stephane@openerp.com>
Thu, 10 Mar 2011 15:40:42 +0000 (16:40 +0100)
committerStephane Wirtel <stephane@openerp.com>
Thu, 10 Mar 2011 15:40:42 +0000 (16:40 +0100)
bzr revid: stephane@openerp.com-20110310154042-lvg95a7040esff5q

addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml

index b0edacd..2ce309e 100644 (file)
@@ -18,7 +18,7 @@
                         <group col="9" colspan="8">
                                <field name="state" readonly="1"/>
                                <button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
-                               <button name="set_open" string="Reactivate Account" type="object" states="pending,cancelled,close" icon="gtk-ok"/>
+                               <button name="set_open" string="Reactivate Account" type="object" states="pending,cancelled,close,draft" icon="gtk-ok"/>
                                <button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
                                <button name="set_close" string="Close" type="object" states="open,pending" icon="terp-dialog-close"/>
                         </group>