[IMP] mail_thread: message_process now automatically set the thread as unread.

bzr revid: tde@openerp.com-20120604102435-hcdo3i6oqdhu6j8j
This commit is contained in:
Thibault Delavallée
2012-06-04 12:24:35 +02:00
parent 9aacbba3da
commit 445b690488
+2
View File
@@ -535,6 +535,8 @@ class mail_thread(osv.osv):
res_id = create_record(msg)
#To forward the email to other followers
self.message_forward(cr, uid, model, [res_id], msg_txt, context=context)
# Set as Unread
self.message_mark_as_unreadcr, uid, [res_id], context=context)
return res_id
def message_new(self, cr, uid, msg_dict, custom_values=None, context=None):