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
| Inputs | Method | Outputs |
|---|---|---|
|
+ 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 |
|
