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

Module: Test API

Entity: test_new_api.attachment

Compute Method: _compute_name

Inputs Method Outputs
for rec in self:
            rec.name = self.env[rec.res_model].browse(rec.res_id).display_name

Back to entity