[FIX]:
When invoicing is "After invoice" then end repair and try to cancel the repair it raises following warning: Warning! Repair order is not invoiced. If its never gonna allow to cancel then no need to show "Cancel Repair" button bzr revid: apa@tinyerp.com-20120619132315-t5me8olij3wdmq3c
This commit is contained in:
parent
d16da9a8d0
commit
b80bb49da8
|
@ -37,7 +37,7 @@
|
|||
<button name="action_invoice_create" states="2binvoiced" string="Make Invoice"/>
|
||||
<button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
|
||||
<button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
|
||||
<button name="%(action_cancel_repair)d" states="confirmed,2binvoiced,ready,under_repair" string="Cancel Repair" type="action"/>
|
||||
<button name="%(action_cancel_repair)d" states="confirmed,2binvoiced,ready,under_repair" string="Cancel Repair" type="action" attrs="{'invisible':['|',('invoice_method','!=','none')]}"/>
|
||||
<button name="%(action_cancel_repair)d" states="invoice_except" string="Cancel Repair" type="action"/>
|
||||
<button name="cancel" states="draft" string="Cancel Repair"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,confirmed,ready" />
|
||||
|
|
Loading…
Reference in New Issue