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

Module: Invoicing

Entity: account.report.expression

Compute Method: _compute_model_id

View 20.0
Inputs Method Outputs
  • engine
  • formula
+ for expression in self:
+             if expression.engine == "reference" and expression.formula:
+                 expression.model_id = self.env["ir.model"].search([("model", "=", expression.formula)], limit=1)
+             else:
+                 expression.model_id = False
  • model_id

Back to entity