diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-05-18 13:17:42 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-05-28 07:30:12 +0200 |
| commit | 2aeb7637689e3bd0e124b8effeb3f294e80eaad1 (patch) | |
| tree | 1fce7bec5c0c5d8b511d1d0bb8437ff20ddd0732 /addons/im_support/static/src/js/support_session.js | |
| parent | 10161f9d61fd4107ac48abdd6e243b3c9c7405cb (diff) | |
[ADD] im_support
This rev. adds a new module enabling the livechat support from
the webclient. It allows employee users to communicate with
livechat operators of another database, assuming that a counterpart
addon is installed on that database.
Task 26762
Co-authored-by: Adrien Dieudonne <adr@odoo.com>
Diffstat (limited to 'addons/im_support/static/src/js/support_session.js')
| -rw-r--r-- | addons/im_support/static/src/js/support_session.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/im_support/static/src/js/support_session.js b/addons/im_support/static/src/js/support_session.js new file mode 100644 index 00000000000..d1228674737 --- /dev/null +++ b/addons/im_support/static/src/js/support_session.js @@ -0,0 +1,18 @@ +odoo.define('im_support.SupportSession', function (require) { +"use strict"; + +/** + * This module returns an instance of Session which is linked to the Support + * server, allowing the current instance to communicate with the Support + * server (CORS). + */ + +var session = require('web.session'); +var Session = require('web.Session'); + +return new Session(null, session.support_origin, { + modules: odoo._modules, + use_cors: true, +}); + +}); |
