ई-कॉमर्स plugins

Odoo

Connect self-hosted Odoo, Odoo.sh or Odoo Online to sync invoices and verified MakePay payments.

Odoo integration

Connect Odoo Community or Enterprise, Odoo.sh, or Odoo Online from MakeCrypto → Bookkeeping → Integrations → Odoo. The API connection imports customer invoices, adds stable MakePay payment links, and records verified payments using Odoo's payment registration and invoice reconciliation.

Odoo Online requires a Custom plan with external API access. One App Free and Standard plans cannot use this connection. See Odoo's API documentation. No custom addon or Studio field is required. This connector supports JSON-RPC on Odoo 16–18 and JSON-2 on Odoo 19.

For a native payment provider in the Odoo customer portal or storefront on self-hosted Odoo or Odoo.sh, use the separate MakePay Odoo addon. Choose one payment flow per invoice; avoid collecting the same invoice through both the addon and the Bookkeeping connection.

Prepare Odoo

  1. Configure MakeCrypto merchant settlement settings.
  2. Create a dedicated Odoo internal user with access to the selected company and permission to read and edit customer invoices, register payments and reconcile them. Grant only the accounting access it needs.
  3. Sign in as that user and open Preferences / My Profile → Account Security → New API Key. Copy the key immediately. Odoo 19 keys expire and must be rotated before expiry.
  4. Note the database name, API user login and your public HTTPS Odoo address, for example https://your-company.odoo.com. The database name can differ from the hostname; check with your Odoo administrator.
  5. Enable developer mode in Odoo Settings. Open the correct company, your bank or cash journal, and its Incoming Payments → Manual method. Use the developer menu's View Metadata to find each record's database ID: company, journal and inbound payment method line. An external XML ID is different from the numeric database ID.
  6. Configure an Outstanding Receipts account on that inbound payment method. Use an account approved by your bookkeeper for recording crypto settlements. A fixed-currency journal must support your invoice currency; use an unrestricted journal for multiple invoice currencies.

The journal and inbound method must belong to the selected company. MakePay verifies those settings before saving the connection. Your API key is encrypted and never returned to the browser.

Connect and sync

In Bookkeeping → Integrations → Odoo → Connect, enter the HTTPS address, database, login, key, company ID, journal ID and inbound method ID. Select Odoo 19 · JSON-2 or Odoo 16–18 · JSON-RPC, then connect.

Click Sync invoices for the first import. A background job also runs every five minutes. Each batch imports up to twenty changed invoices; larger accounts continue over subsequent batches. The first import pages through existing customer invoices. Later batches use an update watermark to pick up new invoices and edits. Check Bookkeeping → Invoices, where imported records show Odoo as their source and link back to the original Odoo invoice. Use the connection panel to see sync errors or payments needing review.

Drafts receive payment links for document preparation. Checkout is enabled only for posted customer invoices with an outstanding balance. Paid, cancelled and reversed invoices cannot collect another payment. Checkout reads the live balance and invoice currency from Odoo, including partial payments; it does not trust browser-submitted amounts.

Invoice PDFs and emails

Sync appends a Pay with MakePay link and its visible URL to the invoice's Terms and Conditions (narration) while preserving existing terms. Odoo's standard invoice PDF prints these terms. Sync before generating the PDF, then check the downloaded document and its link. Previously downloaded PDFs do not update. Custom reports must include the invoice terms.

To include the payment link in invoice emails and reminders, edit the relevant Odoo email template in developer mode. Use Copy email snippet in the connected MakeCrypto panel, or add the following in the template's HTML editor:

<div t-out="object.narration or ''" />

This prints the invoice terms, including the synced MakePay link. Keep Odoo's existing invoice-view button and other template content. Send a test email to an inbox you control and check the received message and PDF. Templates and reminder schedules remain under your control in Odoo. New invoices must sync before the link appears in their terms; an email sent before that sync will need to be resent or use Odoo's normal invoice-view link.

Payment confirmation

The payment URL opens MakePay checkout in the invoice's currency. Only a recorded successful MakePay settlement can trigger Odoo payment registration. The connector checks the merchant, checkout, exact invoice amount and currency and rejects demo payments. A browser return does not mark an invoice paid.

Reconciliation creates an inbound customer payment with memo MP- followed by the checkout attempt ID, through Odoo's normal Register Payment wizard. It verifies the payment's company, customer, journal, method, currency, amount and invoice allocation before marking the attempt recorded. Depending on the journal's configuration, Odoo may show In Payment until your bookkeeper reconciles the outstanding receipts with the actual settlement. The API does not force Odoo's invoice status or fabricate bank statement entries.

Retries look up the same memo and verify the existing allocation. If a payment creation response is interrupted, MakePay checks for its result but does not issue a second payment creation request. An unresolved result is marked Review required for your bookkeeper. Refunds and corrections must be handled manually in MakePay and Odoo after verifying the actual settlement.

Update or disconnect

Use Update connection to rotate an API key. Keep the same URL, database and company so existing payment links and history remain attached to the original invoices. Keep the journal and method unchanged while checkouts are outstanding.

Disconnect pauses outstanding MakePay checkouts and disables the invoice payment URLs. Completed payments awaiting reconciliation must be resolved first. Reconnect the original company to restore stable links and reconcile payments that arrive later.

Test locally

The repository includes connector tests and a native test runner for disposable Odoo instances. Run the service tests from apps/makecrypto:

node --import ./scripts/register-test-alias-loader.mjs --conditions react-server --test lib/odoo-bookkeeping.test.ts

Use the native setup and test scripts described in docs/odoo-bookkeeping-validation.md to exercise actual Odoo APIs, accounting records and payment allocations. Native tests use simulated MakePay settlement records and do not move funds. A hosted Odoo account still needs its own API-enabled plan, company permissions and journal configuration.

पार्टनर सेटअप में मदद चाहिए?

वास्तविक payment UID के लिए generated snippets कॉपी करने हेतु MakeCrypto में payment link details view खोलें, या merchant settings संभालने के लिए portal पर लौटें.

पोर्टल खोलें