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: im_livechat.channel
Compute Method: _compute_ongoing_sessions_count
| Inputs | Method | Outputs |
|---|---|---|
|
|
+ count_by_channel = defaultdict(int) + for key, count in self._get_ongoing_session_count_by_agent_livechat_channel().items(): + count_by_channel[key[1]] += count + for channel in self: + channel.ongoing_session_count = count_by_channel.get(channel, 0) |
|
