Get Model Fields
Perform Get Model Fields through Odoo.
odoo_get_model_fieldsreadodoo
Inputs
- Model
modelexpressionrequiredRequired literal value or workflow expression.
- Custom Only
custom_onlybooleanOptional true-or-false value.
Default:
false - Writable Only
writable_onlybooleanOptional true-or-false value.
Default:
false - Context
contextjsonOptional JSON value.
Outputs
modelModelfieldsFieldsfield_namesField NamescountCountsuccessSuccesserrorErrorerror_nameError Namestatus_codeStatus Code
Output schema completeness: best_effort_declared
Safety
- External effect
- read
- Confirmation recommended
- No
- Retry safe
- Yes
- Dry run supported
- No
Schemas
These schemas are first-pass authoring guidance. Runtime validation remains authoritative.
Input schema
{
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"context": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"custom_only": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
},
"writable_only": {
"type": "boolean",
"default": false,
"description": "Optional true-or-false value.",
"x-workflow-field-type": "boolean"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"count": {},
"error": {},
"model": {},
"fields": {},
"success": {},
"error_name": {},
"field_names": {},
"status_code": {}
},
"additionalProperties": true
}