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.activity

Compute Method: _compute_res_name

View 17.0 View 19.0
Inputs Method Outputs
  • res_model
  • res_id
- for activity in self:
+ free = self.filtered(lambda a: not a.res_model or not a.res_id)
+ free.res_name = False
+ for activity in (self - free):
            activity.res_name = activity.res_model and \
                self.env[activity.res_model].browse(activity.res_id).display_name
  • res_name

Back to entity