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

Module: Web M2X Options Manager

Entity: m2x.create.edit.option

Compute Method: _compute_name

Inputs Method Outputs
for opt in self:
            try:
                opt.name = str(self.env[opt.field_id.model]._fields[opt.field_id.name])
            except KeyError:
                opt.name = "Invalid field"

Back to entity