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

Module: Test ORM

Entity: test_orm.attachment

Compute Method: _compute_name

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

Back to entity