Query
Certified
Run Odoo XML-RPC operations
Query
Certified
Run Odoo XML-RPC operations
yaml
type: io.kestra.plugin.odoo.QueryExamples
yaml
id: odoo_query_partners
namespace: company.team
tasks:
- id: query_partners
type: io.kestra.plugin.odoo.Query
url: http://localhost:8069
db: demo
username: test@demo.com
password: "{{ secret('ODOO_PASSWORD') }}"
model: res.partner
operation: SEARCH_READ
filters:
- ["is_company", "=", true]
fields: ["name", "email", "phone", "is_company"]
limit: 10
fetchType: FETCH
yaml
id: create_partner
namespace: company.team
tasks:
- id: create_partner
type: io.kestra.plugin.odoo.Query
url: http://localhost:8069
db: demo
username: test@demo.com
password: "{{ secret('ODOO_PASSWORD') }}"
model: res.partner
operation: CREATE
values:
name: "Acme Corporation"
email: "contact@acme.com"
is_company: true
yaml
id: update_partners
namespace: company.team
tasks:
- id: update_partners
type: io.kestra.plugin.odoo.Query
url: http://localhost:8069
db: demo
username: test@demo.com
password: "{{ secret('ODOO_PASSWORD') }}"
model: res.partner
operation: WRITE
ids: [1, 2, 3]
values:
active: true
category_id: [[6, 0, [1, 2]]]
yaml
id: read_partners
namespace: company.team
tasks:
- id: read_partners
type: io.kestra.plugin.odoo.Query
url: http://localhost:8069
db: demo
username: test@demo.com
password: "{{ secret('ODOO_PASSWORD') }}"
model: res.partner
operation: READ
ids: [1, 2, 3]
fields: ["name", "email", "phone"]
fetchType: FETCH
Properties
db *Requiredstring
model *Requiredstring
operation *Requiredstring
Possible Values
SEARCH_READREADCREATEWRITEUNLINKSEARCHSEARCH_COUNTpassword *Requiredstring
url *Requiredstring
username *Requiredstring
fetchType string
Default
NONEPossible Values
STOREFETCHFETCH_ONENONEfields array
SubTypestring
filters array
ids array
SubTypeinteger
limit integerstring
offset integerstring
values object
Outputs
ids array
SubTypeinteger
row object
rows array
SubTypeobject
size integer
uri string
Format
uri