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: _are_you_inside

View 17.0 View 18.0
Inputs Method Outputs
  • user_ids
for channel in self:
-             channel.are_you_inside = bool(self.env.uid in [u.id for u in channel.user_ids])
+             channel.are_you_inside = self.env.user in channel.user_ids
  • are_you_inside

Back to entity