From 312b85ee2aba9fcefa7801f3a5113c8f08f08305 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 14 Jul 2015 09:22:37 +0200 Subject: [PATCH] [FIX] mail: reload messages after closing composer Always reload the message after the mail composer message is closed. Since there is several unrelated model it would probably messy to go from the mail thread to the mail composer popup to see if a new message is posted (or get it and add it in the chatter like done in the simple message editor). With this change, anytime the mail composer modal is closed the mail thread messages are reloaded. closes #7596 opw-644406 --- addons/mail/static/src/js/mail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 25a6c1e8e54..1920d95c986 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -582,7 +582,9 @@ openerp.mail = function (session) { context: context, }; - self.do_action(action); + self.do_action(action, { + 'on_close': function(){ self.parent_thread.message_fetch() } + }); self.on_cancel(); });