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: res.users

Compute Method: _compute_livechat_is_in_call

View 20.0
Inputs Method Outputs
  • livechat_channel_ids
+ for user in self:
+             # sudo - res.users: checking if user is in call is allowed if the user is member of a live chat channel.
+             user.livechat_is_in_call = user.sudo().is_in_call if user.livechat_channel_ids else None
  • livechat_is_in_call

Back to entity