model_fields |
Fields
Catalog: Odoo
Schema: ir
Documentation:
fields configuration for form builder
The data in this table is partitioned per value of the column.
This is a read-only table. The Odoo API may not support changing the data or the Invantive SQL driver for Odoo does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Odoo API.
Table Columns
The columns of the table model_fields are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
column1 |
string |
Column 1 |
☐ |
Column referring to the record in the model table |
column2 |
string |
Column 2 |
☐ |
Column referring to the record in the comodel table |
complete_name |
string |
Complete Name |
☐ |
|
compute |
string |
Compute |
☐ |
Code to compute the value of the field.Iterate on the recordset 'self' and assign the field's value:for record in self:record['size'] = len(record.name)Modules time, datetime, dateutil are available. |
copied |
boolean |
Copied |
☐ |
Whether the value is copied when duplicating a record. |
create_date |
datetime |
Created on |
☐ |
|
create_uid_label |
string |
|
☐ |
|
create_uid |
string |
|
☐ |
|
depends |
string |
Dependencies |
☐ |
Dependencies of compute method; a list of comma-separated field names, likename, partner_id.name |
display_name |
string |
Display Name |
☐ |
|
domain |
string |
Domain |
☐ |
The optional domain to restrict possible values for relationship fields, specified as a Python expression defining a list of triplets. For example: [('color','=','red')] |
field_description |
string |
Field Label |
☑ |
|
group_expand |
boolean |
Expand Groups |
☐ |
If checked, all the records of the target model will be includedin a grouped result (e.g. 'Group By' filters, Kanban columns, etc.).Note that it can significantly reduce performance if the target modelof the field contains a lot of records; usually used on models withfew records (e.g. Stages, Job Positions, Event Types, etc.). |
groups |
string |
|
☐ |
|
help |
string |
Field Help |
☐ |
|
id |
int32 |
ID |
☐ |
|
index |
boolean |
Indexed |
☐ |
|
model_id_label |
string |
|
☐ |
The model this field belongs to |
model_id |
string |
|
☐ |
The model this field belongs to |
model |
string |
Model Name |
☑ |
The technical name of the model this field belongs to |
modules |
string |
In Apps |
☐ |
List of modules in which the field is defined |
name |
string |
Field Name |
☑ |
|
on_delete |
string |
On Delete |
☐ |
On delete property for many2one fields |
readonly |
boolean |
Readonly |
☐ |
|
related_field_id_label |
string |
|
☐ |
|
related_field_id |
string |
|
☐ |
|
related |
string |
Related Field |
☐ |
The corresponding related field, if any. This must be a dot-separated list of field names. |
relation_field_id_label |
string |
|
☐ |
|
relation_field_id |
string |
|
☐ |
|
relation_field |
string |
Relation Field |
☐ |
For one2many fields, the field on the target model that implement the opposite many2one relationship |
relation_table |
string |
Relation Table |
☐ |
Used for custom many2many fields to define a custom relation table name |
relation |
string |
Related Model |
☐ |
For relationship fields, the technical name of the target model |
required |
boolean |
Required |
☐ |
|
selectable |
boolean |
Selectable |
☐ |
|
selection_ids |
string |
|
☐ |
|
selection |
string |
Selection Options (Deprecated) |
☐ |
|
size |
int32 |
Size |
☐ |
|
state |
string |
Type |
☑ |
|
store |
boolean |
Stored |
☐ |
Whether the value is stored in the database. |
tracking |
int32 |
Enable Ordered Tracking |
☐ |
If set every modification done to this field is tracked in the chatter. Value is used to order tracking values. |
translate |
boolean |
Translatable |
☐ |
Whether values for this field can be translated (enables the translation mechanism for that field) |
ttype |
string |
Field Type |
☑ |
|
website_form_blacklisted |
boolean |
Blacklisted in web forms |
☐ |
Blacklist this field for web forms |
write_date |
datetime |
Last Updated on |
☐ |
|
write_uid_label |
string |
|
☐ |
|
write_uid |
string |
|
☐ |
|
01-03-2023 15:29 Version 22.1.135-BETA+3826