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

Module: Database Size

Entity: ir.model.size

Compute Method: _compute_model_name

View 18.0
Inputs Method Outputs
  • model
+ """Assign the model's label"""
+ model2name = {
+             model.model: model.name for model in self.env["ir.model"].sudo().search([])
+         }
+ for size in self:
+             size.model_name = model2name.get(size.model, "<removed>")
  • model_name

Back to entity