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

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

Back to entity