summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-11-30 10:30:02 +0100
committerAaron Bohy <aab@odoo.com>2015-12-03 11:21:47 +0100
commit33ac65c805c30fafac4e2cf5490c57c7eaf74b4a (patch)
treeecfa65800a25234ee2084e9f44a28e5b3ea0ccda /addons/mail/static/src/xml
parent6e96da625560d0a074ca61d57ec4db59a2443e47 (diff)
[FIX] mail: redirection handling in chat windows
- clicking on a channel mention (or a user) from a chat window opens a new chat window for that channel - clicking on any other link in a chat window correctly opens the corresponding document 2 minor changes were required: - use do_show() instead of on_reverse_breadcrumb() to update control panel and url in client action, as other actions can be stacked over the client action, e.g. by clicking on a document link in a chat window. In that case, the on_reverse_breadcrumb callback wouldn't be set, and thus the control panel and url wouldn't be updated by coming back to client action using the breadcrumbs. - channel_join() now checks whether or not the channel has already been joined (i.e. if it is in the JS cache) before performing the RPC. This check was performed by each caller, so this simplifies the code.
Diffstat (limited to 'addons/mail/static/src/xml')
0 files changed, 0 insertions, 0 deletions