[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:
parent
2b13234661
commit
acb55e321d
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue