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

Module: Template Content Swapper

Entity: template.content.mapping

Compute Method: _compute_template_id

Inputs Method Outputs
for rec in self:
            rec.template_id = False
            if rec.report_id:
                report_name = rec.report_id.report_name
                rec.template_id = self.env["ir.ui.view"]._get(report_name).sudo()

Back to entity