return True
def action_cancel_send_note(self, cr, uid, ids, context=None):
- for id in ids:
- message = _("Manufacturing order has been <b>canceled</b>.")
- self.message_append_note(cr, uid, [id], 'System Notification', message, context=context)
+ message = _("Manufacturing order has been <b>canceled</b>.")
+ 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 <b>ready to produce</b>.")
- self.message_append_note(cr, uid, [id], 'System Notification', message, context=context)
+ message = _("Manufacturing order is <b>ready to produce</b>.")
+ 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 <b>in production</b>.")
- self.message_append_note(cr, uid, [id], 'System Notification', message, context=context)
+ message = _("Manufacturing order is <b>in production</b>.")
+ 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 <b>done</b>.")
- self.message_append_note(cr, uid, [id], 'System Notification', message, context=context)
+ message = _("Manufacturing order has been <b>done</b>.")
+ 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 <b>confirmed and waiting for goods</b>.")
- self.message_append_note(cr, uid, [id], 'System Notification', message, context=context)
+ message = _("Manufacturing order has been <b>confirmed and waiting for goods</b>.")
+ self.message_append_note(cr, uid, ids, 'System Notification', message, context=context)
return True
def copy(self, cr, uid, id, default=None, context=None):