Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for odoo

Jobs that use the odoo adaptor may require authentication. A "credential" for the odoo adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"password": "@some(!)Str0ngp4ss0w0rd",
"username": "test@openfn.org",
"database": "devel",
"baseUrl": "https://dev.newlogic-demo.com"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"baseUrl": {
"title": "Base URL",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The base URL (http://www.example.com)",
"format": "uri",
"minLength": 1,
"default": "http://localhost",
"examples": [
"https://dev.newlogic-demo.com"
]
},
"username": {
"title": "Username",
"type": "string",
"description": "Username",
"default": "admin",
"examples": [
"test@openfn.org"
]
},
"password": {
"title": "Password",
"type": "string",
"description": "Password",
"default": "admin",
"writeOnly": true,
"examples": [
"@some(!)Str0ngp4ss0w0rd"
]
},
"database": {
"title": "Database Name",
"type": "string",
"default": "devel",
"description": "Database Name",
"examples": [
"devel"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"password",
"username",
"database",
"baseUrl"
]
}