get_fields
Retrieve field definitions for Odoo models to understand data structure, including types, labels, requirements, and relationships.
Instructions
Get field information for an Odoo model using ORM fields_get().
Args: model: Model name (e.g., 'res.partner') field_filter: Optional filter for field name (e.g., 'name' to find name-related fields) fields: Specific field names to retrieve (None = all fields) attributes: Field attributes to return (None = default attributes including type, string, help, required, readonly, store, selection, comodel_name, inverse_name, domain)
Returns: JSON array of field definitions. Each field includes: - name: Field name - type: Field type (char, integer, many2one, selection, etc.) - string: Human-readable label - required: Whether field is required - readonly: Whether field is readonly - selection: List of [value, label] pairs (for selection fields) - comodel_name: Related model name (for relational fields)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| field_filter | No | ||
| fields | No | ||
| attributes | No |