[FIX] if not list then assign list value.
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>
Tue, 20 Mar 2012 11:43:01 +0000 (17:13 +0530)
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>
Tue, 20 Mar 2012 11:43:01 +0000 (17:13 +0530)
bzr revid: bth@tinyerp.com-20120320114301-j0nxo25x290i0kgh

addons/project/project.py

index 102900e..8578ac3 100644 (file)
@@ -1050,6 +1050,7 @@ class task(osv.osv):
         return True
 
     def do_pending_send_note(self, cr, uid, ids, context=None):
+        if not isinstance(ids,list): ids = [ids]
         msg = 'Task is now <b>pending</b>.'
         self.message_append_note(cr, uid, ids, 'System Notification', msg, context=context)
         return True