Skip to content

Odoo Sync FastAPI Backend - #16

Open
KMMRCap wants to merge 1 commit into
odoonix:17.0from
KMMRCap:main
Open

Odoo Sync FastAPI Backend#16
KMMRCap wants to merge 1 commit into
odoonix:17.0from
KMMRCap:main

Conversation

@KMMRCap

@KMMRCap KMMRCap commented Jul 24, 2026

Copy link
Copy Markdown

Summary

Implemented an Odoo 18 to PostgreSQL synchronization service using FastAPI, SQLAlchemy, Alembic, and Docker Compose.

Included

  • Odoo XML-RPC integration
  • Synchronization of contacts, products, sale orders, and sale order lines
  • Idempotent create/update synchronization using Odoo record IDs
  • Relationship resolution between synchronized entities
  • Sync run and synchronization log tracking
  • PostgreSQL persistence with SQLAlchemy and Alembic migrations
  • FastAPI health check and synchronization endpoints
  • Docker Compose environment for Odoo, PostgreSQL, and the sync service
  • Project documentation and setup instructions

The complete environment can be started with:

docker compose up --build

Note

I had only a few month experience with python and its frameworks and docker as it was not my major working stack.
So it took me a major time learning and searching to develop this app.
I didn't have enough time to develop some features (like tests, proper transaction, etc.) mentioned in the test document.
Also the project might not run duo to lack of time for fixing the last docker problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant