Connecting an Odoo site
Create an Odoo user and API key, choose the blog to publish to, then test and connect the Odoo website in Connect a Site.
Odoo websites connect through Odoo's external API with a username and an API key. Posts are created in one Odoo blog that you choose while connecting. This guide covers the Odoo preparation, the form and what to expect when posts are published.
Before you start
You are an Owner or Admin of the company in Accounts, or of its agency.
The Odoo instance runs the Website app with at least one blog.
You have administrator access in Odoo to create a user and an API key.
Odoo's external API is reachable at
https://your-instance/xmlrpc/2. On Odoo Online, the external API only works on the Custom plan.
Step 1: Create a user for publishing
Create a dedicated Odoo user for the platform and give it access to Website blog posts (Settings > Users > Access Rights). Keep its other rights to a minimum.
Step 2: Generate an API key
Sign in to Odoo as that user.
Open the user's preferences and go to Account Security.
Create a new API key, give it a name such as "UP-TO-DATE" and copy it. Odoo shows it only once.
Step 3: Find the database name
You need the name of the Odoo database. On Odoo Online it is often the first part of the address, such as yourcompany in yourcompany.odoo.com. For other hosting, ask whoever runs the Odoo server.
Step 4: Open Connect a Site
In Accounts, go to Companies › Overview, open the company and click the Websites tab.
Click Connect a Site. The window opens with the connect form ready.
Under Select your CMS, choose Odoo.
Step 5: Fill in the fields
Field | What to enter |
|---|---|
Odoo Instance URL | The address of the Odoo instance, for example |
Database Name | The database name from step 3. |
Username/Email | The login of the user from step 1. |
API Key | The key from step 2. |
Blog Selection | See step 6. |
Website ID (Optional) | Only for Odoo instances with several websites. Leave it empty otherwise. |
Step 6: Choose the blog
Under Blog Selection, the list says "Fetch the list first". The Fetch blogs button next to it becomes clickable when the URL, database, username and API key are filled in.
Click Fetch blogs. You see "Fetched" with the number of blogs found, for example "Fetched 2 blogs from Odoo".
Choose the blog posts should go into from the list. Each blog shows with its ID.
Step 7: Test the connection
Click Test connection.
The test signs in with the API key and checks that the user can read blog posts.
When it passes, you see "Test connection successful! Credentials are valid and have blog access."
Step 8: Connect
Make sure a blog is selected. Without one, Connect stops with "Please select a blog before connecting. Use Fetch Blogs to load the blogs from your Odoo instance."
Click Connect. The window closes and the site appears in the company's Websites list, named after the blog.
How posts arrive in Odoo
Each post is created as a new post in the selected blog, with the title, the content and a subtitle (the post's snippet or meta description, or the start of the text).
Changes to a post that already exists in Odoo are not sent again. Make later edits in Odoo.
The website is listed with the Odoo instance address and the blog. For the AI Memory crawl, make sure the company's website URL in Accounts is the public website address.
Changing the connection later
In Accounts, go to Websites › All Websites, open the site and click Edit connection. In Site settings, you can change the Site name, the Username or email and the API key. Leave API key blank to keep the current key. A new username or key is tested before it is saved. Contact the UP-TO-DATE support team before disconnecting a site with existing posts, because disconnecting removes its posts and schedules from the platform.
Common errors
Message | What to check |
|---|---|
"Odoo rejected the username or API key." or "Odoo returned an error while logging in." | Use the login (usually the email address) and an API key from the user's preferences (Account Security > New API Key). On Odoo Online, the external API only works on the Custom plan. |
"Odoo has no database with this name." | Check the database name. On Odoo Online it is usually the subdomain. |
"No Odoo XML-RPC API at this address (status ...)." | Check the URL is the Odoo instance itself. On Odoo Online, the external API only works on the Custom plan. |
"Unexpected response from Odoo (status ...)." | Open Technical details and send them to the UP-TO-DATE support team. |
"Logged in, but this user cannot read blog posts." | Give the user access to the Website app with blog rights, or connect with a user that has them. |
"Could not reach the Odoo instance." | The instance couldn't be reached, or the external API is blocked. The line under the message names the reason. |
"URL, Database, Username, and API Key are required to fetch blogs" | Fill in all four fields first. |
"No blogs found in your Odoo instance" | Create a blog in the Website app, or check the user's access. |
Related articles
Did this answer your question?