ir.model provides information about Odoo models via its various fields. such as
name : a human-readable description of the model
model : the name of each model in the system
state : whether the model was generated in Python code (base) or by creating an ir.model record (manual)
field_id : list of the model's fields through a One2many to ir.model.fields
view_ids : One2many to the Views defined for the model
access_ids : One2many relation to the Access Control set on the model
Note- ir.model can be used to query the system for installed models (as a precondition to operations on the model or to explore the system's content)
and to get information about a specific model (generally by listing the fields associated with it)
and to create new models dynamically over RPC.
0 Comment(s)