This Thunderbird add-on imports emails into the ERP software Odoo (version 19+) and shows their Odoo status inline in the message reader.
- Odoo >= 19 (the External JSON-2 API was introduced in Odoo 19)
- Optional:
- Odoo Helpdesk (
helpdeskmodule) to import emails as Ticket (Helpdesk). Without it, the Ticket option is not offered. - mail_manual_routing to handle new and unrelated emails that are otherwise not visible in Odoo. For details, see faotools mail_manual_routing.
- Without this extension, emails imported as Generic may not be visible.
- Odoo Helpdesk (
- Odoo:
- Create an API key: User → My Preferences → Security → API Keys → Add API key (see Odoo documentation)
- Thunderbird:
- Install the add-on Odoo Email Connector
- Open the add-on's Options page:
- Click Test connection — you will be prompted to grant host permission. If successful, click Save.
- Optional, to import emails as tickets: in Import Settings click Load teams from Odoo once (this also checks that Helpdesk is installed), then optionally pick a Default Helpdesk Team. Without a default team, Odoo chooses the team. Click the button again after changing the teams in Odoo.
The add-on never contacts the Odoo server automatically. Server requests are only made when explicitly triggered by the user:
- clicking Verify, Add or an Add as … button in the status bar
- selecting Verify or Import this email from the right-click menu
- selecting Sync from Odoo from the right-click menu
- clicking a button on the options page (e.g. Test connection, Load teams from Odoo, Sync)
Right-click one or more emails in the message list and select Odoo Email Connector:
| Menu item | Action |
|---|---|
| Import this email | Checks Odoo; if not found, checks the parent thread (In-Reply-To / References). Offers to import as Opportunity (CRM Lead) or Generic, and as Ticket (Helpdesk) when Helpdesk is available (with a team select when there are several teams). |
| Verify | Checks selected emails against Odoo and caches the result. Shows count label (e.g. Verify 3 messages). |
| Sync from Odoo | Bulk-fetches message IDs from Odoo (within max-age window) into the local cache. |
The import type is only asked when neither the email nor a predecessor is in Odoo: an email already in Odoo is only reported, and a reply is attached to its predecessor's record after a confirmation. Helpdesk counts as available once Helpdesk teams were loaded (see Import Settings below).
When viewing an email, a colored status bar may appear at the top of the message pane. It only displays information from the local cache — viewing an email never triggers an Odoo server request. If nothing is cached for the current email, the status bar is not shown and no server request is made, keeping performance impact minimal for non-Odoo emails.
- message found in Odoo
- message not found, but a parent/reply predecessor was found in Odoo
- message and predecessors not found in Odoo
Buttons in the bar:
- Verify — re-check this email against Odoo
- Add — shown when a predecessor is in Odoo: import the email into its record
- Add as Ticket (Helpdesk), Add as Opportunity (CRM Lead), Add as Generic — shown when neither the email nor a predecessor is in Odoo: import it as that type with one click. Ticket only appears when Helpdesk is available; with several teams a team select follows it, preselected with the Default Helpdesk Team. No type is preselected — the button you click decides.
Results are cached per message and persist across restarts.
The options page has three sections:
Odoo Connection — URL, API key, database, test connection, save.
Import Settings — Settings for new emails without a match in Odoo:
- Default Helpdesk Team — preselected team for tickets in the import dialog and the status bar. Not set lets Odoo choose.
- Load teams from Odoo — checks whether Helpdesk is installed and caches its teams. Test connection does the same. Without Helpdesk, the Helpdesk team is shown greyed out and Ticket is not offered for import. Click it again after changing the teams in Odoo.
- Replace
Delivered-TowithX-Original-To— off by default. Enable it when Odoo adds an internal mailbox as a follower: Odoo reads the recipients fromDelivered-Tofirst, which after local delivery can hold that mailbox.
Odoo Sync — Settings for bulk sync:
- Max age (days) — how far back to look. 0 = unlimited.
- Sync limit — maximum messages to fetch. 0 = unlimited.
- Count — preview how many messages Odoo will return.
- Sync — incremental sync from Odoo.
- Clear Cache — delete all cached statuses.
- Displays cache entry count and last sync time (auto-refreshes).





