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_available_operator_ids
| Inputs | Method | Outputs |
|---|---|---|
|
- for record in self: - record.available_operator_ids = record.user_ids.filtered(lambda user: user.im_status == 'online') + operators_by_livechat_channel = self._get_available_operators_by_livechat_channel() + for livechat_channel in self: + livechat_channel.available_operator_ids = operators_by_livechat_channel[livechat_channel] |
|
