Odoo Krayin CRM integration

Krayin CRM Connector

Krayin CRM and Odoo 19 in step: organizations, persons, leads and products, both ways

What it does

Krayin REST API - Contacts both ways - Leads with pipeline stages - Products - Activities in the chatter

Krayin is a popular open-source CRM for sales teams, but invoices, stock and the rest of the business often live in Odoo. This module connects the two through the Krayin REST API package. Krayin organizations become Odoo companies and persons become their contacts. Krayin leads become Odoo opportunities with the value, expected close date, person, salesperson, source, lead type and pipeline stage. Won and lost leads are won and lost in Odoo too, with the lost reason. It works the other way as well: new companies, contacts, opportunities and products in Odoo are created in Krayin, and edits are sent on the next run.

Who it is for

  • Sales teams that live in a self-hosted Krayin CRM. Reps keep working their Krayin pipeline while quoting and invoicing happen in Odoo. Leads sync both ways with CRM opportunities, carrying title, value, expected close date, person, salesperson, source, stage, and won or lost with the lost reason.
  • Companies moving from Krayin to Odoo CRM step by step. Each part can run Krayin to Odoo, Odoo to Krayin, both ways or off. That lets you import contacts and leads first and switch the direction later, without retyping organizations or persons.
  • Managers who want the lead history in one place. Calls, meetings, lunches, notes and e-mails logged on a Krayin lead are posted once in the Odoo chatter, and notes written in Odoo go back to Krayin as notes.
  • Teams keeping a shared product list for quotes. Products can sync with name, SKU, price and description. The Krayin quantity is shown on the product, but Odoo stock is never changed by it.

Setting it up

  1. On your Krayin 2.x server, install the krayin/rest-api package and create an API user, or issue a Sanctum token for one.
  2. In Odoo go to Krayin CRM > Connections, enter the Krayin Address and either the API Token or the API User E-mail and password, choose the Run As user and press Test Connection.
  3. Press Read Pipelines and Users, then map each Krayin pipeline and stage to an Odoo stage and sales team, sources to UTM sources and lead types to CRM tags.
  4. Set the direction for contacts, leads and products, decide on Import Lead Activities and Send Odoo Notes as Krayin Notes, and pick the default Krayin stage, source, lead type and salesperson.
  5. Press Sync Now for the first run. After that the hourly scheduled action reads only what changed, and every record shows up in Krayin CRM > Sync Log.

Krayin CRM Connector: questions

Does it work with Krayin Cloud or Krayin 1.x?

It is written for Krayin CRM 2.x with the krayin/rest-api package on your own server. Any Krayin install where that package answers at your address should work; older 1.x versions were not targeted.

Will logging in with e-mail and password affect other apps?

Yes, it can. When no token is given, Odoo logs in with the API user's e-mail and password and Krayin then revokes that user's earlier tokens. Use a dedicated API user or paste a token to avoid it.

What happens if the same lead is changed on both sides?

Odoo changes still waiting to be sent go out first, so a pull does not overwrite them. With both-ways sync, the fields Odoo is about to push are kept and the rest are updated from Krayin.

Does it delete anything in Krayin?

No. Nothing is ever deleted in Krayin. Check for Deleted Records finds records removed on the Krayin side and archives the linked ones in Odoo.

Which Odoo apps does it need?

CRM, Products and Discuss mail, all included in Odoo 19 Community. Each connection belongs to one company, and Krayin users are matched to Odoo users by e-mail within it.

Can I link a record that already exists on both sides?

Yes. Enter its Krayin ID on the Odoo record and press Pull from Krayin, or Send to Krayin to push the Odoo version.