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

Module: Lead Livechat Sessions

Entity: crm.lead

Compute Method: _compute_visitor_sessions_count

Inputs Method Outputs
  • visitor_ids
  • visitor_ids.discuss_channel_ids
for lead in self:
            lead.visitor_sessions_count = len(lead.visitor_ids.discuss_channel_ids)

Back to entity