usability + need to click twice to create the invoice because workflow action wrong return type
bzr revid: rgaopenerp-20130502100615-nqe99uj4g6l2c97j
This commit is contained in:
parent
dcc0f57c00
commit
cb13dd8ac2
|
@ -347,8 +347,9 @@ class mrp_repair(osv.osv):
|
|||
return self.write(cr,uid,ids,{'state':'cancel'})
|
||||
|
||||
def wkf_invoice_create(self, cr, uid, ids, *args):
|
||||
return self.action_invoice_create(cr, uid, ids)
|
||||
|
||||
self.action_invoice_create(cr, uid, ids)
|
||||
return True
|
||||
|
||||
def action_invoice_create(self, cr, uid, ids, group=False, context=None):
|
||||
""" Creates invoice(s) for repair order.
|
||||
@param group: It is set to true when group invoice is to be generated.
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<button name="repair_ready" states="confirmed,ready" string="Start Repair" class="oe_highlight"/>
|
||||
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
|
||||
<button name="action_repair_end" states="under_repair" string="End Repair" class="oe_highlight"/>
|
||||
<button name="action_invoice_create" states="2binvoiced" string="Make Invoice" class="oe_highlight"/>
|
||||
<button name="action_invoice_create" states="2binvoiced" string="Create Invoice" class="oe_highlight"/>
|
||||
<button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
|
||||
<button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
|
||||
<button name="action_cancel" string="Cancel Repair" type="object" attrs="{'invisible':['|',('invoice_method','!=','none'), ('state', 'not in',('confirmed','2binvoiced','ready','under_repair', 'invoice_except'))]}"/>
|
||||
|
|
Loading…
Reference in New Issue