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: ir.model.fields

Compute Method: _compute_can_have_options

Inputs Method Outputs
  • ttype
for field in self:
            field.can_have_options = field.ttype in ("many2many", "many2one")

Back to entity