get_defaults
Retrieve default field values Odoo pre-fills for new records. Optionally include an action's context or specify a context dictionary for wizard models.
Instructions
Return the default field values Odoo would pre-fill when clicking New. Pass action_id to include the action's context (e.g. default_partner_id). Pass context dict directly for wizard models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| context | No | ||
| action_id | No |