From acb55e321d765baf44ff10ce60d32c6881a6c3b6 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 1 Oct 2015 14:49:05 +0200 Subject: [PATCH] [FIX] mail: reload only in log after composer Commit e0c1f54fd78 was supposed to prevent the message fetch in the inbox view. However, self.is_log refers to the type of message: internal note or message. This properly checks if the page displayed is the inbox view before fetching the messages. Related to #7596 opw-650208 --- 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 7b9f1467cd5..4e8a30af4bf 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.is_log && self.parent_thread.message_fetch() } + 'on_close': function(){ !self.parent_thread.options.view_inbox && self.parent_thread.message_fetch() } }); self.on_cancel(); });