Remote Flow Trigger

Remotely invoke any Odoo model method on a specific record via a single POST call, as if pressing a UI button from an external system, script, or mobile app.

Required Dependency

Remote Flow Trigger requires Odoo Generic API to be installed first. It uses the JWT authentication infrastructure provided by that module.

View Odoo Generic API

What is Remote Flow Trigger?

In Odoo, many business actions are triggered by clicking buttons in the UI: confirming a sale order, resetting an invoice to draft, generating a barcode on an employee record. Remote Flow Trigger exposes these same actions over HTTP, so external systems can trigger them programmatically without needing Odoo's XML-RPC interface or a UI session.

The module adds a single endpoint: POST /api/<model>/<id>/execute. The request body specifies the method name, and the module calls it on the record. Returns 202 Accepted on success.

Features

Remote Method Execution

Execute any public model method on a specific record with a single HTTP POST call, no UI interaction required.

JWT Secured

Inherits the JWT authentication layer from Odoo Generic API. All remote calls must carry a valid Bearer token.

Any Model, Any Method

Works with any installed Odoo model and any public method, from generating barcodes to resetting invoice status to draft.

External Integration Ready

Ideal for CI/CD pipelines, external apps, mobile clients, or scripts that need to trigger Odoo business logic programmatically.

Endpoint

POST/api/<model>/<id>/execute

Request body (JSON):

{ "method": "<method_name>" }

Response codes:

202 - Accepted - method executed successfully400 - Missing or empty method field401 - Invalid or missing JWT token404 - Record not found500 - Method does not exist or raised an exception

Usage Examples

Reset an invoice to draft status from an external system:

# Execute a method on a record (e.g. reset an invoice to draft)
curl -X POST "https://your-odoo.com/api/account.move/42/execute" \
  -H "Authorization: Bearer <token>" \
  -H "db: your_database" \
  -H "Content-Type: application/json" \
  -d '{"method": "button_draft"}'

# Successful response
HTTP/1.1 202 Accepted

Generate a barcode on an employee record:

# Generate a barcode on an employee record
curl -X POST "https://your-odoo.com/api/hr.employee/7/execute" \
  -H "Authorization: Bearer <token>" \
  -H "db: your_database" \
  -H "Content-Type: application/json" \
  -d '{"method": "generate_barcode"}'

Summary

  • Single endpoint - one POST call to execute any model method remotely
  • JWT secured - reuses the authentication layer from Odoo Generic API
  • Model-agnostic - works with any installed Odoo model and any public method
  • External integration - perfect for CI/CD pipelines, mobile apps, and third-party automations
  • Low cost - at $45, the most affordable way to add remote workflow triggering to Odoo