summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-11-19 13:42:48 +0000
committerDavid Beguin <dbe@odoo.com>2020-01-22 15:17:14 +0000
commitc785373db164325c08d0cae38bbdccbc7736c11d (patch)
tree02b070f537bce25bb2adfe7d443533d2d065fd7f /addons/web/static/src/js/views/basic/basic_controller.js
parent9aef423d4da93af97385e2bce8140ed789a00679 (diff)
[FIX] website: fix visitor _compute_time_statistics
This commit fixes the visitor's time_statistics computation. When creating a new visitor, last connection datetime is not set, so it's not retrieved in the search_read and crash at search_read_result[visitor.id]. This fix also speeds up and simplifies the time_statistics computation. As time_connection_datetime is always set (for already created visitor) and in the depends, no need to read values before looping, the data is already fetched in memory. We can then use directly the value for each visitor in self. Task ID: 2120464 PR #40199 closes odoo/odoo#43780 X-original-commit: 1f0c9f272ea5b6b7b891fcb8d00eb81e7fe33f81 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions