Step 1: Get your Odoo credentials
First, you need to find your Odoo username, API key, Server URL, and database name.
Username | Username is the name of the Odoo user. You can find it on the Change Password page in Odoo.
|
API Key |
|
Server URL | The server URL is your domain. For the cloud version of Odoo, it could look something like mycompany.odoo.com |
Database name | For the cloud version, the database name is the subdomain. In the example mycompany.odoo.com, the subdomain is mycompany |
Step 2: Integrate Odoo with Plecto
In Plecto, go to Data sources > New data source > Odoo.
(Optional) Rename your credentials.
Enter the username, API key, server URL, and database name you obtained in Step 1, and click Next.
Select the data you want to import.
Configure your data source settings. Here, you can change the title, choose the default date, select which fields to import, and more.
Click Next to choose how much data to import and how long you want to keep it in the data source.
Click Import to finish.
How to set up automatic registration deletion with webhooks
It's possible to configure deletion webhooks between Plecto and Odoo. It means that whenever you delete data in Odoo, it will also be deleted from Plecto.
Requirements
To use this feature, you need to purchase the following extensions from Odoo:
Odoo Webhook: https://apps.odoo.com/apps/modules/16.0/webhooks/
Odoo REST API: https://apps.odoo.com/apps/modules/16.0/restapi/
How to configure deletion webhooks
Open your Odoo data source settings in Plecto and click Refresh webhooks.
You will see a yellow warning message containing a callback URL. Copy the link.
In a new browser tab, open Odoo and go to Settings > Technical > Webhooks.
Click NEW in the top-left corner.
Fill out the following details:
Webhook name, user, secret, model, format, language.
Paste the link you got from Plecto in the Callback URL field.
Leave the Fields field blank.
Under Event, select On Deletion.
Click the little cloud icon next to the heading (Webhooks / New) to save the webhook.
Your deletion webhooks are now all set up! 🎉