Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Discuss

Entity: mail.message

Compute Method: _compute_channel_id

View 20.0
Inputs Method Outputs
  • model
  • res_id
+ for message in self:
+             if message.model == "discuss.channel" and message.res_id:
+                 message.channel_id = self.env["discuss.channel"].browse(message.res_id)
+             else:
+                 message.channel_id = False
  • channel_id

Back to entity