Describe the problem/error/question
I need to send a custom (or unavailable) Odoo command via JSONRPC to my Odoo instance. So I’m using an HTTP Request to do so. However, because Odoo requires the password or API key multiple levels deep in the body JSON, I’m not able to use one of the Generic Type credentials.
{
"jsonrpc": "2.0",
"method": "call",
"params": {
"service": "object",
"method": "execute",
"args": [
"{{ $json.odoo_database_name }}",
{{ $json.odoo_user_id }},
"{{ $json.odoo_api_key }}",
"account.move",
"action_post",
[
{{ $('Merge').first().json.id }}
]
]
},
"id": {{ Math.floor(Math.random() * 1000000000) }}
}
I checked the {{ $parameter }}
object, but I can’t reference my custom auth object or any other generic one.
Does anyone know how I can reference a generic credentials object to replace the {{ $json.odoo_api_key }}
expression above?
What is the error message (if any)?
Invalid credentials
Information on your n8n setup
- n8n version: 1.99.1
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker container in AWS ECS
- Operating system: OS used by stable tag at https://hub.docker.com/r/n8nio/n8n/tags