diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-07-14 09:22:37 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2015-07-14 10:43:33 +0200 |
| commit | 312b85ee2aba9fcefa7801f3a5113c8f08f08305 (patch) | |
| tree | ac6364b450fd30a40d9d77c572d941ee71f6de39 /addons/mail/static/src/js/mail.js | |
| parent | 89e1aae508268f138dbbbd4d8c5b1d32a902f7a0 (diff) | |
[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
Diffstat (limited to 'addons/mail/static/src/js/mail.js')
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 4 |
1 files changed, 3 insertions, 1 deletions
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(); }); |
