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
| Inputs | Method | Outputs |
|---|---|---|
|
+ """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>") |
|
