Skip to documentation
Odoo integration

Create or Update Record

Perform Create or Update Record through Odoo.

View as Markdown
odoo_upsert_record
writeodoo

Inputs

  • model
    expressionrequired
    Model

    Required literal value or workflow expression.

  • match_fields
    jsonrequired
    Match Fields

    Required JSON value.

  • domain
    json
    Domain

    Optional JSON value.

  • values
    jsonrequired
    Values

    Required JSON value.

  • resolve_names
    boolean
    Resolve Names

    Optional true-or-false value.

    Default: true

  • fields
    expression
    Fields

    Optional literal value or workflow expression.

  • include_archived
    boolean
    Include Archived

    Optional true-or-false value.

    Default: false

  • context
    json
    Context

    Optional JSON value.

Outputs

  • record_idRecord Id
  • recordRecord
  • successSuccess
  • errorError
  • error_nameError Name
  • status_codeStatus Code
  • createdCreated
  • updatedUpdated
  • match_countMatch Count
  • match_record_idsMatch Record Ids

Output schema completeness: best_effort_declared

Safety

External effect
write
Confirmation recommended
No
Retry safe
No
Dry run supported
No

Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

Input schema
{
  "type": "object",
  "required": [
    "model",
    "match_fields",
    "values"
  ],
  "properties": {
    "model": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "domain": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "fields": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "values": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "context": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "match_fields": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "resolve_names": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "include_archived": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "properties": {
    "error": {},
    "record": {},
    "created": {},
    "success": {},
    "updated": {},
    "record_id": {},
    "error_name": {},
    "match_count": {},
    "status_code": {},
    "match_record_ids": {}
  },
  "additionalProperties": true
}
View all Odoo actions