From 59eca3ad1006fc31a9796bd2416d1ba5465fde87 Mon Sep 17 00:00:00 2001 From: "Amit Patel (OpenERP)" Date: Wed, 27 Jun 2012 12:05:44 +0530 Subject: [PATCH] [IMP]:improved chatter bzr revid: apa@tinyerp.com-20120627063544-3jvcbng896lk0kix --- addons/mrp_repair/mrp_repair.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index b0e6411a481..7d4528371d3 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -331,13 +331,13 @@ class mrp_repair(osv.osv): self.write(cr, uid, [o.id], {'state': '2binvoiced'}) else: self.write(cr, uid, [o.id], {'state': 'confirmed'}) - self.set_confirm_send_note(cr, uid, ids) if not o.operations: raise osv.except_osv(_('Error !'),_('You cannot confirm a repair order which has no line.')) for line in o.operations: if line.product_id.track_production and not line.prodlot_id: raise osv.except_osv(_('Warning'), _("Serial number is required for operation line with product '%s'") % (line.product_id.name)) mrp_line_obj.write(cr, uid, [l.id for l in o.operations], {'state': 'confirmed'}) + self.set_confirm_send_note(cr, uid, [o.id]) return True def action_cancel(self, cr, uid, ids, context=None): @@ -502,7 +502,6 @@ class mrp_repair(osv.osv): else: pass self.write(cr, uid, [order.id], val) - self.set_end_repair_send_note(cr, uid, [order.id], context) return True def wkf_repair_done(self, cr, uid, ids, *args): @@ -588,10 +587,6 @@ class mrp_repair(osv.osv): message = _("Repair order has been Confirmed.") return self.message_append_note(cr, uid, ids, body=message, context=context) - def set_end_repair_send_note(self, cr, uid, ids, context=None): - message = _("Repair is now Ended.") - return self.message_append_note(cr, uid, ids, body=message, context=context) - def set_cancel_send_note(self, cr, uid, ids, context=None): message = _("Repair has been cancelled.") return self.message_append_note(cr, uid, ids, body=message, context=context)