summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-10-14 17:17:41 +0200
committerGéry Debongnie <ged@odoo.com>2015-10-16 15:52:02 +0200
commitbe5fc7b1a4fe91272bc48d16068ad299aa6585ba (patch)
tree24fd776a341566d3cb3832d66a0e1e99872751c0 /addons/web/static/src/js/framework/session_instance.js
parent6ae0309b994ed4fc031f695f985972c1d0b0fd5c (diff)
[IMP] mail: redirect to DM on user clicked
When clicking on a partner in the thread of messages, it opens the DM with the associated user if there is one (and if this user isn't the current user). Otherwise, or when clicking on a record of any other model, the user is redirected to that record's form view. This change required a minor change in chat_manager: create_channel now returns the created channel, as the client action needs it to switch to it. Moreover, in the thread, when there is no partner associated with a message (only an email address), we simply use html's mailto mechanism. This fixes a bug as we formerly tried to open an unexisting record of res.partner.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions