[FIX] mail: reload only in log after composer

Commit e0c1f54fd7 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
This commit is contained in:
Nicolas Martinelli 2015-10-01 14:49:05 +02:00
parent 2b13234661
commit acb55e321d
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.is_log && self.parent_thread.message_fetch() }
'on_close': function(){ !self.parent_thread.options.view_inbox && self.parent_thread.message_fetch() }
});
self.on_cancel();
});