- def action_invoice_end(self, cr, uid, ids, context=None):
- """ Writes repair order state to 'Ready' if invoice method is Before repair.
- @return: True
- """
- repair_line = self.pool.get('mrp.repair.line')
- for order in self.browse(cr, uid, ids, context=context):
- val = {}
- if (order.invoice_method == 'b4repair'):
- val['state'] = 'ready'
- repair_line.write(cr, uid, [l.id for
- l in order.operations], {'state': 'confirmed'}, context=context)
- else:
- pass
- self.write(cr, uid, [order.id], val, context=context)
- return True
+# Remove this method because not use any where
+
+# def action_invoice_end(self, cr, uid, ids, context=None):
+# """ Writes repair order state to 'Ready' if invoice method is Before repair.
+# @return: True
+# """
+# repair_line = self.pool.get('mrp.repair.line')
+# for order in self.browse(cr, uid, ids, context=context):
+# val = {}
+# if (order.invoice_method == 'b4repair'):
+# val['state'] = 'ready'
+# repair_line.write(cr, uid, [l.id for
+# l in order.operations], {'state': 'confirmed'}, context=context)
+# else:
+# pass
+# self.write(cr, uid, [order.id], val, context=context)
+# return True