From 532607843715119ebede77eb590f230eb604eaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 12 Mar 2012 12:46:39 +0100 Subject: [PATCH] [FIX] mail_thread: fixed a bug when sending a notification coming from an action: the message user_id was reset, therefore not displaying the user name and avatar next to the message. bzr revid: tde@openerp.com-20120312114639-fb5sggvvw1egnnzn --- addons/mail/mail_thread.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 336505c4b18..6ea9d806c7b 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -101,10 +101,6 @@ class mail_thread(osv.osv): subscription_obj = self.pool.get('mail.subscription') notification_obj = self.pool.get('mail.notification') - # notifications do not come from any user, but from system - if vals.get('type') == 'notification': vals['user_id'] = False - if not 'model' in vals: vals['model'] = False - if not 'res_id' in vals: vals['res_id'] = 0 need_action_pushed = False # create message