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

Module: TMS Document

Entity: tms.document

Compute Method: _compute_res_ref

Inputs Method Outputs
for rec in self:
            if rec.res_model and rec.res_id and rec.res_model in self.env:
                rec.res_ref = f"{rec.res_model},{rec.res_id}"
            else:
                rec.res_ref = False

Back to entity