[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
This commit is contained in:
Nicolas Lempereur 2015-07-14 09:22:37 +02:00
parent 89e1aae508
commit 312b85ee2a
1 changed files with 3 additions and 1 deletions

View File

@ -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();
});