List Field Choices
Perform List Field Choices through Odoo.
odoo_list_field_optionsreadodoo
Inputs
- Model
modelexpressionrequiredRequired literal value or workflow expression.
- Field
fieldexpressionrequiredRequired literal value or workflow expression.
- Relation Domain
relation_domainjsonOptional JSON value.
- Query
querytextOptional text value.
- Max Records
max_recordsnumberOptional numeric value.
Default:
200 - Context
contextjsonOptional JSON value.
Outputs
field_typeField TyperelationRelationoptionsOptionscountCounttruncatedTruncatedsuccessSuccesserrorErrorerror_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",
"field"
],
"properties": {
"field": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"model": {
"description": "Required literal value or workflow expression.",
"x-workflow-field-type": "expression"
},
"query": {
"type": "string",
"description": "Optional text value.",
"x-workflow-field-type": "text"
},
"context": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
},
"max_records": {
"type": "number",
"default": 200,
"description": "Optional numeric value.",
"x-workflow-field-type": "number"
},
"relation_domain": {
"description": "Optional JSON value.",
"x-workflow-field-type": "json"
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"count": {},
"error": {},
"options": {},
"success": {},
"relation": {},
"truncated": {},
"error_name": {},
"field_type": {},
"status_code": {}
},
"additionalProperties": true
}