ir.model.fields provides information about the fields of Odoo models and allows adding custom fields without using Python code.
model_id: Many2one to ir.model to which the field belongs
name: the field's technical name (used in read or write)
field_description: the field's user-readable label (e.g. string in fields_get)
type: the type of field to create
state: whether the field was created via Python code (base) or via ir.model.fields (manual)
required, readonly, translate: enables the corresponding flag on the field
groups: field-level access control, a Many2many to res.groups
selection, size, on_delete, relation, relation_field, domain
Note- computed fields can not be added via ir.model.fields, some field meta-information
0 Comment(s)