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: discuss.channel

Compute Method: _compute_livechat_matches_self_lang

View 20.0
Inputs Method Outputs
  • livechat_lang_id
  • livechat_lang_id.code
+ for channel in self:
+             channel.livechat_matches_self_lang = (
+                 channel.livechat_lang_id in self.env.user.livechat_lang_ids
+                 or channel.livechat_lang_id.code == self.env.user.lang
+             )
  • livechat_matches_self_lang

Back to entity