summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-03-21 13:14:30 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit8986428709fd4140b9198777cad3acdd84621f30 (patch)
tree8513261190a290fd7030bfb59798cd3ba00f60af /addons/web/static/src/js/views/basic/basic_controller.js
parent9a3a402f5ec8e018c76db19a02643e7f4873b9e7 (diff)
[FIX] web: test_utils: get_session fallback
The session can me mocked in the test environment (if a session is given in the params). However, when it is not, it crashed if one of the instantiated widgets requests the session with getSession(). This rev. adds a fallback so that when this happens, the real session (web.session) is given.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions