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

Module: Base Import Pdf by Template

Entity: base.import.pdf.template.line

Compute Method: _compute_model

Inputs Method Outputs
for item in self:
            item.model = (
                item.template_id.model
                if item.related_model == "header"
                else item.template_id.child_model
            )

Back to entity