[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
This commit is contained in:
Nicolas Lempereur 2015-07-16 08:12:09 +02:00
parent e9403a7ab7
commit e0c1f54fd7
1 changed files with 1 additions and 1 deletions

View File

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