Salesforce Import

Import Salesforce users, accounts, contacts, leads, opportunities, notes, tasks and events into Odoo CRM, with a stage map, user matching, incremental re-runs and Recycle Bin deletes.

Buy on the Odoo App StoreThe catalogue

What it does

Brings a Salesforce org into Odoo CRM: Salesforce users are matched to your Odoo users, accounts become companies with their contacts, leads and opportunities land in the Odoo pipeline through a stage map filled from your own opportunity stages, and notes, tasks, calls and events become internal notes in the chatter of the right record.

Re-runs read only what changed in Salesforce (SystemModstamp) and never duplicate; records moved to the Salesforce Recycle Bin are archived in Odoo. Each step writes a row in the Import History with created, updated, archived and skipped records, API calls and the API requests your org has left today.

Demo video

The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube

Features

FeatureWhat it does
UsersStandard Salesforce users matched to existing Odoo users by e-mail for salesperson assignment; no user is ever created.
Accounts and contactsCompanies and their people with billing and mailing addresses, phones, e-mail, industry and description.
LeadsWith source and status; converted leads are archived, unqualified leads marked lost.
OpportunitiesAmount, probability, close date and stage; won and lost exactly as Salesforce marks them (IsWon, IsClosed); the deal's contact at its company.
Notes, tasks, calls and eventsInternal notes in the chatter of the account, contact, lead or opportunity they belong to, with due date, status, time and place.
Incremental re-runsOnly records changed since the last import are read; every record is matched by its Salesforce id first.
DeletesRecords moved to the Salesforce Recycle Bin are archived in Odoo, never deleted.
API limitsOnly fields that exist in your org are requested; the API requests left today are kept in the history; large imports save as they go and continue in the background.
SecurityRead-only; the consumer secret is visible to administrators only and never logged; only your *.my.salesforce.com host is ever called; the Salesforce link fields can only be set by the import and administrators.

Setup

  1. Salesforce Setup: create an external client app (or connected app) with OAuth, enable the client credentials flow and choose a run-as user who can read accounts, contacts, leads, opportunities, notes, tasks and events (scope "Manage user data via APIs").
  2. Odoo: Settings > Salesforce. Enter your My Domain URL (https://mycompany.my.salesforce.com), the consumer key and the consumer secret, then click Test Connection.
  3. Click Import from Salesforce, choose what to import and click Start Import (or Run in Background for a large org).
  4. Check the User Map (Salesforce users matched by e-mail) and the Stage Map (your opportunity stages, with closed and won as Salesforce defines them), then run again: only changes are read.

Requirements

  • Odoo 17, 18, 19 or 20, Community edition
  • Odoo apps: CRM, Contacts, Discuss
  • Python requests on the Odoo server

What it does not do

  • Export from Odoo to Salesforce (one-way import).
  • Lightning notes (ContentNote), e-mails (EmailMessage), attachments, campaigns, cases, quotes and custom objects.
  • Person accounts as individuals (they are imported as companies); currency conversion.
  • Creating Odoo users.

Tests

Automated tests, last run
OdooTests passedLast run
1773
1873
1973
2073

The tests ship with the module source, so you can run them on your own server.

Questions

Which Salesforce editions work?

Editions with REST API access. The import uses the OAuth 2.0 client credentials flow of an external client app with a run-as user.

Does a second import create duplicates?

No. Records are matched by their Salesforce id; a re-run only reads what changed since the last import.

What happens to records deleted in Salesforce?

If they are in the Recycle Bin when the next import runs, their Odoo record is archived. Nothing is deleted in Odoo.

How many API requests does it use?

One per 2,000 records read, plus a few for the stages and the field list. The requests your org has left today are shown in the Import History.

Are my Lightning notes imported?

Not in this version: classic notes, tasks, calls and events are. Write to us if you need Lightning notes.

Would you rather we ran the migration?

CRM Smiths runs managed CRM migrations into Odoo: fixed scope, published prices, from $8,000.

See migration scope and prices [email protected]