Odoo Neo4j integration

Neo4j Connector

Turn Odoo records into a Neo4j graph: nodes, properties and relationships.

Neo4j and Odoo 19

What it does

Map a model to a label, tick the fields that become properties, and turn many2one or many2many fields into relationships. Odoo sends the changes every 15 minutes with MERGE, removes links that are gone, and can clean up nodes of deleted records.

The module uses the Neo4j Query API over HTTPS, the endpoint /db/<database>/query/v2 of Neo4j 5 and Aura. There is no Neo4j driver to install on the Odoo server and nothing listens for incoming calls.

A node mapping is a label, an Odoo model, a filter and the fields that become properties. Every node also gets odoo_id and odoo_model, and Odoo writes with MERGE on odoo_id, so the same sync can run twice without creating duplicates. Many-to-one fields become the name of the linked record, many-to-many fields the list of ids.

Relationship mappings turn a link field into a typed relationship between two labels, for example (:Company)-[:LOCATED_IN]->(:Country) or (:Company)-[:TAGGED]->(:Tag). When a tag is removed in Odoo the TAGGED relationship is removed in Neo4j on the next sync. Point to This Node flips the arrow.

Administrators can save Cypher queries and run them from Odoo. Each run happens in an explicit transaction that Odoo always rolls back, so a saved query can read the graph but never change it.