[FIX] Remove For loop.

bzr revid: bth@tinyerp.com-20120316125257-blyd6clm1m24rzbd
This commit is contained in:
Bhumi Thakkar (Open ERP)
2012-03-16 18:22:57 +05:30
parent f48b95afc4
commit 8f9489596b
+10 -15
View File
@@ -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 <b>pending</b>.'
self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context)
msg = 'Task is now <b>pending</b>.'
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 <b>opened</b>.'
self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context)
msg = 'Task has been <b>opened</b>.'
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 <b>canceled</b>.'
self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context)
msg = 'Task has been <b>canceled</b>.'
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 <b>closed</b>.'
self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context)
msg = 'Task has been <b>closed</b>.'
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 <b>renewed</b>.'
self.message_append_note(cr, uid, [id], 'System Notification', msg, context=context)
msg = 'Task has been <b>renewed</b>.'
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):