[REM]: unuse variable name and method

bzr revid: ksa@tinyerp.com-20110921113912-ytotb6rh424xemnj
This commit is contained in:
Kirti Savalia (OpenERP) 2011-09-21 17:09:12 +05:30
parent c6cb0c8785
commit 53b4c561be
2 changed files with 8 additions and 11 deletions

View File

@ -463,12 +463,14 @@ class mrp_repair(osv.osv):
self.write(cr, uid, [repair.id], {'state': 'ready'})
return True
def action_invoice_cancel(self, cr, uid, ids, context=None):
""" Writes repair order state to 'Exception in invoice'
@return: True
"""
self.write(cr, uid, ids, {'state': 'invoice_except'})
return True
#Remove this method because not use any where
# def action_invoice_cancel(self, cr, uid, ids, context=None):
# """ Writes repair order state to 'Exception in invoice'
# @return: True
# """
# self.write(cr, uid, ids, {'state': 'invoice_except'})
# return True
def action_repair_start(self, cr, uid, ids, context=None):
""" Writes repair order state to 'Under Repair'

View File

@ -116,11 +116,6 @@
-
!python {model: mrp.repair}: |
self.action_repair_ready(cr, uid, [ref('mrp_repair_rma0')], context=None)
- |
Writes repair order state to 'Exception in invoice'
-
!python {model: mrp.repair}: |
self.action_invoice_cancel(cr, uid, [ref('mrp_repair_rma0')], context=None)
- |
Creates stock move and picking for repair order
-