Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@vicacha-devs/medusa-plugin-odoo

Latest version: v0.1.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: yusufmuysca
0 Stars
0 Forks
4 Versions
TypeScript Repo language

Scan summary

@vicacha-devs/medusa-plugin-odoo was last scanned on 23 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published on 23 Nov 2026.
  • Findings: No rules fired in version 0.1.1.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 23 Nov 2026 No rules fired
0.1.0 23 Nov 2026 No rules fired
0.0.1 23 Nov 2026 No rules fired
0.0.0-stage 23 Nov 2026 Not shown

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@vicacha-devs/medusa-plugin-odoo

The Complete Bidirectional Odoo ERP (Odoo 14–19+ JSON-RPC 2.0 & JSON-2 API) Integration, Multi-Warehouse Inventory Drift Reconciliation, Automated Order/Invoice/Payment Accounting, POS Barcode Resolver & Offline POS Replay Suite for Medusa v2 (^2.21.0).

medusa-plugin-odoo unifies and supersedes two separate Medusa ecosystem packages—@bambiste/medusa-odoo and @techmarbles/medusa-odoo-connector—into a single self-contained, zero-external-SaaS-proxy Medusa v2 plugin with native support for both legacy Odoo 14–18 JSON-RPC 2.0 and modern Odoo 19+ JSON-2 REST/RPC APIs.


Table of Contents

  1. Overview & Ecosystem Comparison
  2. Architecture Overview
  3. Installation & medusa-config.ts Configuration
  4. Bidirectional Sync Capabilities
  5. Database Schema (mpo_* Models)
  6. Medusa v2 Workflows & Compensation
  7. Subscribers & Scheduled Jobs
  8. Complete REST API Reference
  9. Typed SDK (medusa-plugin-odoo/sdk) & React Hooks (medusa-plugin-odoo/hooks)
  10. Decoupled Admin UI, Widgets & 10-Locale i18n
  11. Security Architecture
  12. Development & Testing Commands

1. Overview & Ecosystem Comparison

Feature / Capability @bambiste/medusa-odoo @techmarbles/medusa-odoo-connector @vicacha-devs/medusa-plugin-odoo
Medusa Version v2 (^2.x) v2 (^2.x) v2 (^2.21.0)
External SaaS Proxy Required No Yes (Requires external connector proxy) No (100% self-hosted inside Medusa)
Odoo Protocol Support JSON-RPC 2.0 only Proxy-dependent Dual Protocol: JSON-RPC 2.0 (Odoo 14–18) & JSON-2 API (Odoo 19+)
Resilience & Rate Limiting Basic fetch Proxy-dependent Token-Bucket Rate Limiter, Circuit Breaker (closed/open/half-open) & Exponential Backoff
Product & Variant Sync One-way import Basic catalog sync Bidirectional (odoo_to_medusa, medusa_to_odoo, bidirectional) + non-destructive variant reconciliation
Multi-Warehouse Inventory Single stock location Basic stock sync Multi-Warehouse stock_location ↔ stock.warehouse (lot_stock_id), on_hand & forecasted modes
Inventory Drift Reconciliation None None Automated & manual drift detection (odoo_wins, medusa_wins, manual_conflict) + point-in-time snapshots
Orders, Invoices & Payments Basic sale.order Basic sale.order Idempotent sale.order + account.move invoice creation/posting (all, paid, fulfilled) + account.payment.register
Two-Way Customer Sync Order partner only Order partner only Two-way res.partner ↔ Medusa Customer sync with B2B Company/VAT & addresses
POS Barcode Resolver & Offline Replay None None Sub-10ms /store/odoo/barcode resolver (pos, warehouse, receiving, stocktake) + Offline POS transaction queue
Inbound Webhooks & Observability None Basic webhook Timing-safe HMAC-SHA256 /hooks/odoo with event deduplication + OpenMetrics/Prometheus /admin/odoo/metrics
Admin UI & i18n Minimal page Settings form *5-Route Admin Control Center (`/app/odoo/), Order & Product Widgets, 18 modular components (< 170` lines), 10 locales**

2. Architecture Overview

graph TD
  subgraph "Admin UI, Widgets & Storefront / POS Clients"
    AdminRoutes["5 Admin Routes (/app/odoo, /connection, /settings, /logs, /barcode)"]
    Widgets["Order & Product Widgets (order.details.after, product.details.after)"]
    PosClient["Storefront & POS Scanner (/store/odoo/barcode)"]
    Hooks["React Hooks (medusa-plugin-odoo/hooks)"]
    SDK["Typed SDK Client (medusa-plugin-odoo/sdk)"]
  end

  subgraph "Medusa v2 API Layer (src/api)"
    AdminAPI["14 Admin Endpoints (/admin/odoo/*)"]
    StoreAPI["Store Barcode Endpoint (/store/odoo/barcode)"]
    WebhookAPI["Inbound Webhook Receiver (/hooks/odoo)"]
    Middlewares["Zod Validators & preserveRawBody Middleware"]
  end

  subgraph "Workflows, Subscribers & Scheduled Jobs"
    WF["Medusa v2 Workflows (Products, Inventory, Orders, Customers, Reconciliation, POS Replay, Barcode, Webhooks)"]
    Subs["4 Event Subscribers (order.placed, product.*, inventory-level.updated, customer.*)"]
    Jobs["2 Cron Jobs (odoo-scheduled-sync, odoo-reconciliation)"]
  end

  subgraph "Odoo Module (ODOO_MODULE = 'odoo' / alias 'odoo-sync')"
    Service["OdooModuleService"]
    Client["Multi-Protocol OdooClient (JSON-RPC 2.0 & Odoo 19+ JSON-2)"]
    Security["SSRF Guard, Secret Redactor & Timing-Safe HMAC Verifier"]
    Metrics["OpenMetrics / Prometheus Registry (odooMetrics)"]
    DB[("10 DML Models (mpo_setting, mpo_erp_mapping, mpo_sync_log, ...)")]
  end

  AdminRoutes & Widgets --> Hooks --> SDK --> AdminAPI
  PosClient --> SDK --> StoreAPI
  AdminAPI & StoreAPI & WebhookAPI --> Middlewares
  AdminAPI --> WF & Service
  StoreAPI & WebhookAPI --> Service
  Subs & Jobs --> WF & Service
  WF --> Service
  Service --> Client & Security & Metrics & DB
Core Architectural Layers
  1. Multi-Protocol OdooClient (src/modules/odoo/client/odoo-client.ts):
    • JSON-RPC 2.0 (protocol: "jsonrpc"): Authenticates via /jsonrpc (service: "common", method: "authenticate") and executes model methods via service: "object", method: "execute_kw" for Odoo 14, 15, 16, 17, and 18.
    • Odoo 19+ JSON-2 API (protocol: "json2"): Executes RESTful RPC calls against /json/2/{model}/{method} using Authorization: Bearer <apiKey> and optional X-Odoo-Database: <db>.
    • Resilience Primitives: Built-in token-bucket rate limiter (rateLimitPerSec), 3-state circuit breaker (closed → open → half-open), and exponential backoff retry loop (maxRetries).
  2. OdooModuleService (src/modules/odoo/service.ts):
    • Extends MedusaService(OdooModels) with full lifecycle management for connection settings, section configurations, bidirectional entity synchronization, drift reconciliation, barcode resolution, offline POS replay, and webhook processing.
  3. 10 DML Models with mpo_ Prefix (src/modules/odoo/models/index.ts):
    • Stores all ERP state in isolated PostgreSQL tables (mpo_setting, mpo_erp_mapping, mpo_sync_log, mpo_sync_failure, mpo_inventory_snapshot, mpo_reconciliation_log, mpo_conflict_resolution, mpo_barcode_scan_log, mpo_offline_pos_transaction, mpo_webhook_event).
  4. Compatibility Alias (src/modules/odoo-sync/index.ts):
    • Exposes medusa-plugin-odoo/modules/odoo-sync as a drop-in compatibility alias for projects migrating from @bambiste/medusa-odoo.

3. Installation & medusa-config.ts Configuration

Step 1: Install the Package
pnpm add @vicacha-devs/medusa-plugin-odoo
# or
npm install @vicacha-devs/medusa-plugin-odoo
Step 2: Configure medusa-config.ts

Register the plugin in plugins and the module in modules (using either medusa-plugin-odoo/modules/odoo or the compatibility alias medusa-plugin-odoo/modules/odoo-sync):

import { defineConfig } from "@medusajs/framework/utils"

export default defineConfig({
  projectConfig: {
    databaseUrl: process.env.DATABASE_URL,
  },
  plugins: [
    {
      resolve: "@vicacha-devs/medusa-plugin-odoo",
      options: {
        url: process.env.ODOO_URL,
        db: process.env.ODOO_DB,
        username: process.env.ODOO_USERNAME,
        apiKey: process.env.ODOO_API_KEY,
        password: process.env.ODOO_PASSWORD,
        protocol: "jsonrpc", // "jsonrpc" (Odoo 14–18) or "json2" (Odoo 19+)
        companyId: 1,
        timeoutMs: 30000,
        maxRetries: 3,
        rateLimitPerSec: 20,
        circuitThreshold: 5,
        circuitResetMs: 60000,
        allowPrivateNetwork: process.env.NODE_ENV !== "production",
        webhookSecret: process.env.ODOO_WEBHOOK_SECRET,
        productSettings: {
          enableProductSync: true,
          direction: "bidirectional",
          creationMode: "create_update",
          skuMapping: "sku",
          autoPublish: true,
          syncImages: true,
        },
        inventorySettings: {
          enableStock: true,
          direction: "bidirectional",
          qtyType: "on_hand",
          doNotSyncZeroStock: false,
        },
        orderSettings: {
          orderSync: true,
          confirmOrderInOdoo: true,
          exportInvoice: true,
          invoiceMode: "paid",
          markInvoicePaid: true,
          createPayment: true,
        },
        customerSettings: {
          enableCustomerSync: true,
          direction: "bidirectional",
          syncAddresses: true,
          syncCompanyVat: true,
        },
        reconciliationSettings: {
          enableScheduledReconciliation: true,
          strategy: "odoo_wins",
          driftThreshold: 0,
        },
      },
    },
  ],
  modules: [
    {
      resolve: "@vicacha-devs/medusa-plugin-odoo/modules/odoo",
      // Compatibility alias also supported:
      // resolve: "@vicacha-devs/medusa-plugin-odoo/modules/odoo-sync",
      options: {
        url: process.env.ODOO_URL,
        db: process.env.ODOO_DB,
        username: process.env.ODOO_USERNAME,
        apiKey: process.env.ODOO_API_KEY,
        protocol: "jsonrpc",
      },
    },
  ],
})
Step 3: Run Database Migrations
npx medusa db:migrate

4. Bidirectional Sync Capabilities

4.1 Products & Variants (product.template ↔ product & product.product ↔ variant)
  • Odoo → Medusa Import: Fetches product.template and product.product records, maps attributes to Medusa options/variants, converts image_1920 base64 images into data URLs or file attachments, deduplicates product handles via slugifyHandle, and performs non-destructive variant reconciliation (matching existing variants by ErpMapping, sku, or barcode without destroying historical IDs).
  • Medusa → Odoo Export: Pushes Medusa products and variants to Odoo product.template / product.product, computes SHA-256 payload checksums (computeExternalChecksum), and updates mpo_erp_mapping to prevent circular subscriber loops.
4.2 Multi-Warehouse Inventory & Drift Reconciliation (stock.quant / stock.warehouse)
  • Location Mapping: Maps Medusa stock_location IDs to Odoo stock.warehouse (lot_stock_id) records.
  • Quantity Modes: Supports both On-Hand (quantity / qty_available) and Forecasted (virtual_available) inventory quantities.
  • Automated Drift Reconciliation: Compares Medusa inventory levels against Odoo stock quants across all mapped variants and warehouses, recording point-in-time mpo_inventory_snapshot rows and resolving discrepancies using:
    • odoo_wins: Automatically updates Medusa inventory levels to match Odoo.
    • medusa_wins: Automatically writes Odoo stock.quant inventory adjustments to match Medusa.
    • manual_conflict: Opens an mpo_conflict_resolution record for human review in /app/odoo/logs.
4.3 Orders, Invoices & Payments (sale.order, account.move, account.payment.register)
  • Order Sync: Triggered automatically on order.placed or manually from the Order widget / API. Resolves or creates the customer res.partner, maps line items by SKU/ERP mapping, creates sale.order + sale.order.line, and optionally confirms the quotation (action_confirm).
  • Invoicing & Payment Registration: When exportInvoice is enabled and the order satisfies invoiceMode (all, paid, or fulfilled), creates and posts the Odoo invoice (account.move / action_post) and optionally registers payment via account.payment.register against the configured paymentJournalId.
4.4 Customers (res.partner)
  • Two-Way Partner Sync: Matches Medusa customers and Odoo res.partner records via mpo_erp_mapping and normalized email addresses, syncing names, phone numbers, street/city/zip/country addresses, and B2B company/VAT fields.
4.5 POS & Warehouse Barcode Resolver + Offline POS Replay
  • Sub-10ms Barcode Lookup (POST /store/odoo/barcode): Resolves barcode, EAN-13, UPC, or SKU across four operational contexts (pos, warehouse, receiving, stocktake) using an in-memory TTL cache → mpo_erp_mapping → Medusa database → live Odoo RPC fallback, logging every scan to mpo_barcode_scan_log.
  • Offline POS Transaction Queue (mpo_offline_pos_transaction): Enqueues offline POS checkouts with idempotent external_transaction_id deduplication and replays them into Medusa orders and Odoo sale.order records once connectivity is restored.
4.6 Inbound Webhooks (/hooks/odoo) & Prometheus Metrics (/admin/odoo/metrics)
  • Inbound Webhooks: Verifies x-odoo-signature / x-webhook-signature against the raw request body using crypto.timingSafeEqual, deduplicates events by event_id in mpo_webhook_event, and dispatches real-time product, stock, customer, or order updates.
  • Prometheus Metrics: Exposes counters and gauges (odoo_sync_runs_total, odoo_sync_records_processed_total, odoo_sync_duration_ms_sum, odoo_rpc_requests_total, odoo_barcode_lookups_total, odoo_circuit_breaker_state, odoo_open_failures_total, odoo_open_conflicts_total) in both JSON and OpenMetrics text format (GET /admin/odoo/metrics?format=prometheus).

5. Database Schema (mpo_* Models)

All 10 DML models are defined in src/modules/odoo/models/index.ts and created by src/modules/odoo/migrations/Migration20260412000000.ts:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @vicacha-devs/medusa-plugin-odoo

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229