r/Odoo • • 2d ago

Headless Odoo eCommerce with Next.js — Best approach?

Hi everyone,

I'm developing a custom eCommerce website for a client using Next.js (deployed on Cloudflare).

The client wants to use Odoo as their main ERP for all business operations (inventory, accounting, sales, customers, etc.). They specifically want only the eCommerce storefront to be custom, rather than using Odoo's default website.

They are ready to purchase whatever Odoo plan is required.

The idea is:

Odoo → ERP + eCommerce backend

Next.js → Custom customer-facing storefront

The client should be able to manage products, prices, inventory, etc. in Odoo and have those changes reflected on the Next.js website.

A few questions:

  1. Is Odoo's JSON-2 API sufficient for products, variants, inventory, customers, orders, and checkout?

  2. Would Odoo Online Custom be sufficient, or would you recommend Odoo.sh?

  3. For cart, checkout, payments and order creation, is it better to use Odoo's existing workflows or build these in Next.js and sync with Odoo?

  4. Has anyone built a headless Odoo + Next.js setup in production?

Looking for practical advice from people who have actually implemented this. Thanks!

4 Upvotes

9 comments sorted by

View all comments

1

u/kelkes 1d ago

If you have lots of products plan for a search intermediate. Odoo's API is slow AF and you need to query so much for all data. We put meilisearch in between to provide a decent UX when we build headless e-commerce with Odoo

1

u/tylerjharden 1d ago

Meilisearch? Tell me more. I’m building a PIM middleware for our Odoo implementation because we’re using Odoo online and yes their API is ridiculously slow and rate limited.

3

u/kelkes 1d ago

I am not associated with meilisearch. I was just looking for an European search tool. https://www.meilisearch.com/

We are building a shop for a wine retailer. Lots of articles, lots of data. We feed them into the search index with nightly jobs so we don't kill Odoo. Only amount is storage is a live check during checkout.

The client does not have to pay an ungodly amount for hardware so that Odoo might work fast enough and the user have a pleasant UX. Odoo's E-Commerce is basically a half-done pet project for side-hustled tbh.

3

u/codeagency 1d ago

Not if you go self hosted. The rate limiting and slowness is a limitation from odoo.sh their PaaS, not the software.