Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Live Chat

Entity: digest.digest

Compute Method: _compute_kpi_livechat_response_value

Inputs Method Outputs
self._raise_if_not_member_of('im_livechat.im_livechat_group_manager')
start, end, __ = self._get_kpi_compute_parameters()
response_time = self.env['im_livechat.report.channel'].sudo()._read_group([
            ('start_date', '>=', start),
            ('start_date', '<', end),
        ], [], ['time_to_answer:avg'])
self.kpi_livechat_response_value = response_time[0][0]

Back to entity