From da9eeeec571ed0dd2c91b79eb85e155a0c100439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 8 Jun 2012 12:19:01 +0200 Subject: [PATCH] [REM] mail_thread: removed duplicated code. bzr revid: tde@openerp.com-20120608101901-6cs8w7ebiq19c662 --- addons/mail/mail_thread.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index d52c910cbaa..3d3f702a76c 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -847,23 +847,4 @@ class mail_thread(osv.Model): return self.write(cr, uid, ids, {'message_thread_read': False}, context=context) -class ir_needaction_mixin(osv.Model): - """ Update of res.users class - - add a preference about sending emails about notificatoins - - make a new user follow itself - """ - _name = 'ir.needaction_mixin' - _inherit = ['ir.needaction_mixin'] - - def get_needaction_user_ids(self, cr, uid, ids, context=None): - """ Returns the user_ids that have to perform an action - :return: dict { record_id: [user_ids], } - """ - result = super(ir_needaction_mixin, self).get_needaction_user_ids(cr, uid, ids, context=context) - for obj in self.browse(cr, uid, ids, context=context): - if obj.message_thread_read == False and obj.user_id: - result[obj.id].add(obj.user_id.id) - return result - - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: