diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-06-09 10:58:52 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-06-09 10:58:52 +0000 |
| commit | 87f49b0616d67ea00e4e15db81459ed33310abec (patch) | |
| tree | 6feb9b26bdfbdcfa22139257c5ebba5c48ab0fbc /addons/im_support/models | |
| parent | 302bf7c1bba0f647666e90010a4159884fa48d0f (diff) | |
[REM] im_support: remove im_support module
The goal of the module was to communicate with livechat operators on our
production server, except the feature is disabled on our prod and we don't plan
to reactivate it any time soon.
closes odoo/odoo#52691
Related: odoo/upgrade#1313
Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons/im_support/models')
| -rw-r--r-- | addons/im_support/models/__init__.py | 4 | ||||
| -rw-r--r-- | addons/im_support/models/ir_http.py | 27 |
2 files changed, 0 insertions, 31 deletions
diff --git a/addons/im_support/models/__init__.py b/addons/im_support/models/__init__.py deleted file mode 100644 index 75127bbcbc3..00000000000 --- a/addons/im_support/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from . import ir_http diff --git a/addons/im_support/models/ir_http.py b/addons/im_support/models/ir_http.py deleted file mode 100644 index 39ff7081862..00000000000 --- a/addons/im_support/models/ir_http.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. -import hmac -from hashlib import sha256 - -from odoo import models -from odoo.http import request - - -class Http(models.AbstractModel): - _inherit = 'ir.http' - - def session_info(self): - result = super(Http, self).session_info() - - if self.env.user.has_group('base.group_user'): - icp = request.env['ir.config_parameter'].sudo() - db_uuid = icp.get_param('database.uuid') - db_secret = icp.get_param('database.secret') - message = db_uuid + str(request.uid) - token = hmac.new(message.encode('utf-8'), db_secret.encode('utf-8'), sha256).hexdigest() - - result['db_uuid'] = db_uuid - result['support_token'] = token - result['support_origin'] = False # must be overridden to specify the correct origin - - return result |
