Skip to content
All docs

Odoo setup

Credential: API key

The Odoo connector writes each article as a blog post of your Odoo website. It uses the JSON-2 API on Odoo 19 and later, and JSON-RPC on Odoo 16 to 18. Posts are unpublished by default: only signed-in Odoo users can see them.

Your Odoo must be on the internet over https. BirchSeek does not connect to private addresses.

Before you start

  • Odoo Online and Odoo.sh give access to the external API on the Custom plan only. The One App Free and Standard plans do not. Self-hosted Odoo has no limit.
  • Install the Blog app (Apps → search Blog → Activate). It also installs Website.
  • Use a user with the Website role Editor and Designer. To publish posts live, the user must also be able to publish.

Step 1 - create an API key

  1. Sign in as the user. Open your avatar → My Profile (or Preferences) → Account Security.
  2. Click New API Key. A user without a password must set one first.
  3. Name it BirchSeek, choose a duration, and copy the key. Odoo shows it one time.

On Odoo 18 and later, a key of a user who is not an administrator lasts at most three months. Make a new key before it expires, and paste it into the connector. An administrator can make a persistent key.

Step 2 - connect in BirchSeek

Setting Meaning
Odoo URL The site root, for example https://example.odoo.com
Login The user’s login, usually an email
Database Optional on odoo.com (the subdomain). Needed on Odoo 16 to 18 elsewhere, and on servers with several databases
API key From step 1
Blog id Optional. Leave it empty if the website has one blog
Author contact id Optional. Empty: the user of the API key
Post status Unpublished (default) or Published. Applies when BirchSeek creates a post

Step 3 - send a test

Send a test finds the API (/web/version answers from Odoo 19), signs in and lists your blogs. When the website has one blog, the test stores its id. When it has more, the test names each blog and its id: copy one into Blog id and test again. The test writes nothing.

What BirchSeek writes

Per article, on the blog.post model:

  • name (the title), seo_name (the slug), content (the article as HTML, without the title heading)
  • website_meta_title, website_meta_description and teaser_manual (the teaser)
  • cover_properties: the cover image
  • tag_ids: your article’s tags, found by name or created
  • author_id: the author contact you set
  • is_published and post_date: from the post status and the publish date

The cover and the in-article images become public attachments, and the post shows them from your site. An image that fails links to BirchSeek’s copy.

The body ends with the ## Sources block (see Sources and citations), then the article’s JSON-LD and a comment that records which BirchSeek article the post is. Odoo adds the post id to each post URL, for example /blog/news-1/my-post-42.

Updates

A refresh updates the same post. The update never changes the post’s status, blog, date or URL. BirchSeek finds the post by the id of its last publish, then by the comment in the body.

Scheduling

BirchSeek’s calendar times each publish.

Troubleshooting

  • AccessDenied or 401: the login, the database or the key is wrong, or the key expired. Make a new key.
  • AccessError or 403: the user does not have the Website role Editor and Designer, or may not publish. On Odoo Online, check the plan.
  • No Blog app: install it, then test again.
  • More than one blog: enter the blog id from the test result.