diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 45241938264..cd20edb8517 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -542,33 +542,28 @@ class mrp_production(osv.osv): return True def action_cancel_send_note(self, cr, uid, ids, context=None): - for id in ids: - message = _("Manufacturing order has been canceled.") - self.message_append_note(cr, uid, [id], 'System Notification', message, context=context) + message = _("Manufacturing order has been canceled.") + self.message_append_note(cr, uid, ids, 'System Notification', message, context=context) return True def action_ready_send_note(self, cr, uid, ids, context=None): - for id in ids: - message = _("Manufacturing order is ready to produce.") - self.message_append_note(cr, uid, [id], 'System Notification', message, context=context) + message = _("Manufacturing order is ready to produce.") + self.message_append_note(cr, uid, ids, 'System Notification', message, context=context) return True def action_inproduction_send_note(self, cr, uid, ids, context=None): - for id in ids: - message = _("Manufacturing order is in production.") - self.message_append_note(cr, uid, [id], 'System Notification', message, context=context) + message = _("Manufacturing order is in production.") + self.message_append_note(cr, uid, ids, 'System Notification', message, context=context) return True def action_done_send_note(self, cr, uid, ids, context=None): - for id in ids: - message = _("Manufacturing order has been done.") - self.message_append_note(cr, uid, [id], 'System Notification', message, context=context) + message = _("Manufacturing order has been done.") + self.message_append_note(cr, uid, ids, 'System Notification', message, context=context) return True def action_waiting_send_note(self, cr, uid, ids, context=None): - for id in ids: - message = _("Manufacturing order has been confirmed and waiting for goods.") - self.message_append_note(cr, uid, [id], 'System Notification', message, context=context) + message = _("Manufacturing order has been confirmed and waiting for goods.") + self.message_append_note(cr, uid, ids, 'System Notification', message, context=context) return True def copy(self, cr, uid, id, default=None, context=None):