From e0c1f54fd78117e1a72bf3550f175cf848544515 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 16 Jul 2015 08:12:09 +0200 Subject: [PATCH] [FIX] mail: reload only in log after composer The commit 312b85e added a reloading of the chatter messages after closing the mail composer. But e.g in Messaging > Inbox a simple reload isn't enough. For now this commit restrict the reload to chatter logs (e.g the chatter of a quotation). related to PR #7596 --- addons/mail/static/src/js/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 1920d95c986..7b9f1467cd5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -583,7 +583,7 @@ openerp.mail = function (session) { }; self.do_action(action, { - 'on_close': function(){ self.parent_thread.message_fetch() } + 'on_close': function(){ self.is_log && self.parent_thread.message_fetch() } }); self.on_cancel(); });