# Odoo integration

> Build workflow automations with 18 public Odoo actions.

Source: [https://genhealth.ai/docs/workflows/integrations/odoo](https://genhealth.ai/docs/workflows/integrations/odoo)

## Available actions

18 actions. Connection types: odoo.

### [Attach Document](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_attach_document.md)

- Handler: `odoo_attach_document`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `record_id`, `s3_path`, `source_document_id`, `filename`, `content_type`
- Outputs: `attachment_id`, `record_id`, `filename`, `size`, `success`, `error`, `error_name`, `status_code`

Perform Attach Document through Odoo.

### [Count Records](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_count_records.md)

- Handler: `odoo_count_records`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `match_fields`, `domain`, `include_archived`, `context`
- Outputs: `count`, `success`, `error`, `error_name`, `status_code`

Perform Count Records through Odoo.

### [Create or Update Record](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_upsert_record.md)

- Handler: `odoo_upsert_record`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `match_fields`, `domain`, `values`, `resolve_names`, `fields`, `include_archived`, `context`
- Outputs: `record_id`, `record`, `success`, `error`, `error_name`, `status_code`, `created`, `updated`, `match_count`, `match_record_ids`

Perform Create or Update Record through Odoo.

### [Create Record](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_create_record.md)

- Handler: `odoo_create_record`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `values`, `resolve_names`, `fields`, `context`
- Outputs: `record_id`, `record`, `success`, `error`, `error_name`, `status_code`

Perform Create Record through Odoo.

### [Create Records (Batch)](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_create_records.md)

- Handler: `odoo_create_records`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `records`, `resolve_names`, `fields`, `context`
- Outputs: `records`, `record_ids`, `count`, `success`, `error`, `error_name`, `status_code`

Perform Create Records (Batch) through Odoo.

### [Delete Records](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_delete_records.md)

- Handler: `odoo_delete_records`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `record_ids`, `context`
- Outputs: `record_ids`, `deleted`, `success`, `error`, `error_name`, `status_code`

Perform Delete Records through Odoo.

### [Download Attachment](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_download_attachment.md)

- Handler: `odoo_download_attachment`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `attachment_id`, `document_type`
- Outputs: `document_id`, `s3_path`, `attachment_id`, `filename`, `mimetype`, `size`, `sha256`, `res_model`, `res_id`, `was_existing`, `success`, `error`, `error_name`, `status_code`

Perform Download Attachment through Odoo.

### [Find or Create Record](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_find_or_create_record.md)

- Handler: `odoo_find_or_create_record`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `match_fields`, `domain`, `values`, `resolve_names`, `fields`, `include_archived`, `context`
- Outputs: `record_id`, `record`, `success`, `error`, `error_name`, `status_code`, `created`, `updated`, `match_count`, `match_record_ids`

Perform Find or Create Record through Odoo.

### [Get Model Fields](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_get_model_fields.md)

- Handler: `odoo_get_model_fields`
- Connection type: `odoo`
- External effect: `read`
- Inputs: `model`, `custom_only`, `writable_only`, `context`
- Outputs: `model`, `fields`, `field_names`, `count`, `success`, `error`, `error_name`, `status_code`

Perform Get Model Fields through Odoo.

### [Get Record by ID](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_get_record.md)

- Handler: `odoo_get_record`
- Connection type: `odoo`
- External effect: `read`
- Inputs: `model`, `record_id`, `fields`, `context`
- Outputs: `record_id`, `record`, `success`, `error`, `error_name`, `status_code`, `found`

Perform Get Record by ID through Odoo.

### [Group and Summarize Records](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_group_records.md)

- Handler: `odoo_group_records`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `match_fields`, `domain`, `group_by`, `aggregates`, `max_records`, `include_archived`, `context`
- Outputs: `groups`, `group_count`, `success`, `error`, `error_name`, `status_code`

Perform Group and Summarize Records through Odoo.

### [List Field Choices](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_list_field_options.md)

- Handler: `odoo_list_field_options`
- Connection type: `odoo`
- External effect: `read`
- Inputs: `model`, `field`, `relation_domain`, `query`, `max_records`, `context`
- Outputs: `field_type`, `relation`, `options`, `count`, `truncated`, `success`, `error`, `error_name`, `status_code`

Perform List Field Choices through Odoo.

### [List Models](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_list_models.md)

- Handler: `odoo_list_models`
- Connection type: `odoo`
- External effect: `read`
- Inputs: `query`, `custom_only`, `max_records`
- Outputs: `models`, `count`, `truncated`, `success`, `error`, `error_name`, `status_code`

Perform List Models through Odoo.

### [Post Chatter Message](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_post_message.md)

- Handler: `odoo_post_message`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `record_id`, `body`, `kind`, `partner_ids`, `attachment_ids`
- Outputs: `message_id`, `record_id`, `success`, `error`, `error_name`, `status_code`

Perform Post Chatter Message through Odoo.

### [Run Model Method](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_call_method.md)

- Handler: `odoo_call_method`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `method`, `record_ids`, `arguments`, `context`
- Outputs: `result`, `success`, `error`, `error_name`, `status_code`

Perform Run Model Method through Odoo.

### [Schedule Activity](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_schedule_activity.md)

- Handler: `odoo_schedule_activity`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `record_ids`, `activity_type`, `summary`, `note`, `date_deadline`, `user`
- Outputs: `activity_ids`, `count`, `success`, `error`, `error_name`, `status_code`

Perform Schedule Activity through Odoo.

### [Search Records](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_search_records.md)

- Handler: `odoo_search_records`
- Connection type: `odoo`
- External effect: `read`
- Inputs: `model`, `match_fields`, `domain`, `fields`, `order`, `max_records`, `offset`, `include_archived`, `context`
- Outputs: `records`, `record_ids`, `count`, `success`, `error`, `error_name`, `status_code`, `found`, `truncated`, `first_record_id`, `first_record`

Perform Search Records through Odoo.

### [Update Records](https://genhealth.ai/docs/workflows/integrations/odoo/odoo_update_records.md)

- Handler: `odoo_update_records`
- Connection type: `odoo`
- External effect: `write`
- Inputs: `model`, `record_ids`, `values`, `resolve_names`, `fields`, `context`
- Outputs: `records`, `record_ids`, `count`, `success`, `error`, `error_name`, `status_code`

Perform Update Records through Odoo.
