feat(integrations): add Odoo webhooks handler
Add webhook endpoints to receive events from Odoo (sale orders, stock picking, invoices) and send WhatsApp notifications when orders are confirmed, shipped, or payments are received. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from app.routers import odoo_router, sync_router
|
||||
from app.routers import odoo_router, sync_router, webhooks_router
|
||||
|
||||
app = FastAPI(title="WhatsApp Central - Integrations Service")
|
||||
|
||||
@@ -14,6 +14,7 @@ app.add_middleware(
|
||||
|
||||
app.include_router(odoo_router)
|
||||
app.include_router(sync_router)
|
||||
app.include_router(webhooks_router)
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
|
||||
Reference in New Issue
Block a user