diff --git a/addons/project/project.py b/addons/project/project.py index ca3f63d2513..102900ee9a9 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -1050,33 +1050,28 @@ class task(osv.osv): return True def do_pending_send_note(self, cr, uid, ids, context=None): - for id in ids: - msg = 'Task is now pending.' - self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context) + msg = 'Task is now pending.' + self.message_append_note(cr, uid, ids, 'System Notification', msg, context=context) return True def do_open_send_note(self, cr, uid, ids, context=None): - for id in ids: - msg = 'Task has been opened.' - self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context) + msg = 'Task has been opened.' + self.message_append_note(cr, uid, ids, 'System Notification', msg, context=context) return True def do_cancel_send_note(self, cr, uid, ids, context=None): - for id in ids: - msg = 'Task has been canceled.' - self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context) + msg = 'Task has been canceled.' + self.message_append_note(cr, uid, ids, 'System Notification', msg, context=context) return True def do_close_send_note(self, cr, uid, ids, context=None): - for id in ids: - msg = 'Task has been closed.' - self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context) + msg = 'Task has been closed.' + self.message_append_note(cr, uid, ids, 'System Notification', msg, context=context) return True def do_draft_send_note(self, cr, uid, ids, context=None): - for id in ids: - msg = 'Task has been renewed.' - self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context) + msg = 'Task has been renewed.' + self.message_append_note(cr, uid, ids, 'System Notification', msg, context=context) return True def do_delegation_send_note(self, cr, uid, ids, context=None):