From 6f29bfc181d23d70d29776d96b4318e9ee2c93a9 Mon Sep 17 00:00:00 2001 From: Nicolas Seinlet Date: Thu, 12 May 2016 11:35:46 +0200 Subject: [PATCH] [FIX] mail: remove unneeded call to `refresh()` With new api, this call is not wanted anymore. The cache is cleared automatically, no need to clear the whole cache; that's a little bit overkill and reduce performances. --- addons/mail/mail_message.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index ed288de1753..5bf5c7f18c4 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -879,7 +879,6 @@ class mail_message(osv.Model): cr, uid, newid, partners_to_notify=list(partners_to_notify), context=context, force_send=force_send, user_signature=user_signature ) - message.refresh() # An error appear when a user receive a notification without notifying # the parent message -> add a read notification for the parent