Short answer: To sync Shopify inventory with multiple Odoo warehouses without overselling, make Odoo the only system that sets stock, map each Odoo warehouse to the right Shopify location and send Shopify Odoo's free-to-use quantity minus a safety buffer, per location. Then reserve stock as soon as orders are confirmed, turn off "continue selling when out of stock," use compare-and-set updates to avoid overwrites and run a daily reconciliation to catch drift.
Selling from one warehouse is simple. Add a second warehouse, a retail store or a 3PL and stock gets complicated fast. Shopify shows "in stock," the order comes in and the warehouse finds an empty shelf.
This guide explains why that happens and shows you, step by step, how to set up Shopify-Odoo inventory sync across several warehouses so what Shopify sells is what you can actually ship.
Why Overselling Happens With Multiple Warehouses
Overselling is rarely one big failure. It is usually several small gaps adding up:
- Both systems edit stock. Someone adjusts quantities in Shopify while Odoo also sends updates, so numbers overwrite each other.
- The wrong quantity is sent. Odoo's on-hand stock is pushed to Shopify, including units already reserved for other orders.
- Warehouses are combined incorrectly. Stock from a returns, damaged or quality-check location is counted as sellable.
- Stock moves between syncs. A fast seller sells out in the minutes between two updates.
- Other channels share the same stock. Amazon, POS or wholesale orders use units Shopify still shows as available.
- Shopify keeps selling at zero. "Continue selling when out of stock" is switched on for some products.
- Orders land in the wrong warehouse. Shopify routes an order to one location, but Odoo reserves stock in another.
Fixing overselling means closing each of these gaps, not just syncing more often.
How Shopify and Odoo Count Stock Differently
The two systems use different words for different numbers. Sending the wrong one is the root cause of most overselling.
Shopify Inventory States (per location)
| State | What it means |
|---|---|
| Available | Units you can sell. This is what customers can buy. |
| Committed | Units set aside for orders that aren't fulfilled yet |
| Reserved | Units temporarily held, for example for inspection |
| Safety stock | Units set aside to guard against overselling |
| Damaged / quality control | Units that can't be sold |
| On hand | All physical units at the location, including the states above |
| Incoming | Units on their way, not yet received |
Odoo Stock Quantities
| Quantity | What it means | Send to Shopify? |
|---|---|---|
| On Hand | Physical stock in the warehouse, including reserved units | No: it includes stock already promised |
| Forecasted | On hand plus incoming, minus outgoing | No: it counts stock you don't have yet |
| Free to Use | On hand minus stock reserved for confirmed transfers | Yes: the safest base quantity |
The rule: Shopify's Available quantity at each location should come from Odoo's Free to Use quantity in the mapped warehouse, minus your safety buffer.
Step 1: Map Odoo Warehouses to Shopify Locations
Shopify tracks stock per location. Odoo tracks it per warehouse and stock location. Your first job is deciding how they line up.
Choose a Mapping Model
| Model | How it works | Best for |
|---|---|---|
| One-to-one | Each Odoo warehouse maps to one Shopify location | Businesses that ship from several warehouses and want Shopify to route orders |
| Many-to-one | Several Odoo warehouses add up to one Shopify location | Businesses where Odoo decides which warehouse ships each order |
| One-to-many stores | One Odoo warehouse feeds several Shopify stores | Brands running several storefronts from one stock pool |
Exclude Stock That Isn't Sellable
- Returns locations until items are inspected and restocked
- Damaged and scrap locations
- Quality-control or inspection locations
- Transit locations for stock moving between warehouses
- Stock reserved for B2B or wholesale customers, if it must not be sold online
Mapping Checklist
- Every active Shopify location is mapped to an Odoo warehouse, or deliberately excluded.
- Every Odoo warehouse that ships online orders is linked to a Shopify location.
- Each product is stocked at the right Shopify locations. Shopify can't hold quantities for a product at a location where it isn't stocked.
- The mapping is documented and approved by operations.
Running many stores? See how Odoo connects 25 Shopify stores and Amazon.
Step 2: Make Odoo the Source of Truth
If two systems can change stock, they will eventually disagree. Pick one owner. For businesses running warehouses in Odoo, that owner should be Odoo.
- All stock changes happen in Odoo: receipts, deliveries, adjustments, transfers, scrap and returns.
- Shopify only receives quantities. It never sends stock changes back.
- Staff stop editing stock in the Shopify admin. Remove the permission if needed.
- Other apps that change Shopify inventory are switched off or routed through Odoo.
- Shopify still sends orders and Odoo reserves and ships them.
Watch out: When an order is placed, Shopify immediately lowers Available and raises Committed. That's expected. The problem starts only when Odoo's next update doesn't yet include that order. Step 5 handles this.
Learn how to keep records matched across both systems in Cross-System Record Identity in Odoo Integrations.
Step 3: Send the Right Quantity to Shopify
For each product and each mapped location, calculate the quantity like this:
Shopify Available = Odoo Free to Use (mapped warehouses) − Safety buffer
If the result is below zero, send zero.
What to Include
- Free-to-use stock in sellable locations of the mapped warehouse(s)
- Stock in sub-locations (shelves, bins) under those warehouses
What to Leave Out
- Incoming purchase orders, unless you deliberately sell pre-orders
- Stock reserved for other channels or confirmed orders
- Returns, damaged, QC and transit locations
Send Per Location, Not Just a Total
- With a one-to-one mapping, send each warehouse's number to its own Shopify location.
- A single total is only right if you use a many-to-one mapping and Odoo chooses the shipping warehouse.
Step 4: Set Safety Buffers
A safety buffer is a small number of units you hold back from Shopify. It absorbs the orders that arrive between syncs and the stock errors that every warehouse has.
Where to Apply the Buffer
- In the connector: subtract the buffer before sending the quantity. This keeps Odoo as the single place to manage it.
- In Shopify: Shopify has a safety stock inventory state that holds units out of Available. If you use it, make sure the connector doesn't overwrite it.
- Use one method, not both, or you will hold back stock twice.
How to Size the Buffer
- Bigger buffer for fast sellers, flash-sale items and products sold on several channels
- Bigger buffer when your sync interval is longer
- Smaller or no buffer for slow movers and high-value items with exact counts
- Review it after cycle counts: if counts often find fewer units than Odoo shows, raise the buffer
- Raise it temporarily before sales campaigns
Tip: Set buffers by product category or tag, not one by one, so they stay manageable.
Step 5: Reserve Stock as Soon as Orders Arrive
Odoo's free-to-use quantity only drops once stock is reserved. If Shopify orders sit unconfirmed, Odoo keeps telling Shopify those units are free.
- Import Shopify orders quickly, ideally within minutes of checkout.
- Confirm imported orders automatically in Odoo, unless you have a manual approval step.
- Set the delivery operation's reservation method to "At Confirmation" in Odoo's Inventory settings, so stock is reserved immediately.
- Make sure the order is created in the warehouse Shopify assigned it to, so the right stock is reserved.
- Cancelled orders must release stock straight away in Odoo.
- Watch for orders stuck in a failed import queue. Their stock is not reserved.
If orders aren't arriving reliably, start with our guide to Shopify orders not syncing with Odoo.
Step 6: Configure Shopify Selling and Location Rules
Stop Selling at Zero
- Turn off "Continue selling when out of stock" on every product variant that shouldn't be back-ordered.
- Make sure inventory tracking is on for every synced variant.
- Check products created by imports or apps, since they often have different default settings.
Control Which Locations Fulfill Online Orders
- Only enable "Fulfill online orders from this location" for locations that really ship online orders.
- Set Shopify's order routing rules to match how your warehouses actually work, for example closest location first or a primary warehouse first.
- Make sure the location Shopify assigns is passed to Odoo with the order.
Retail Stores and POS
- If a shop location also sells in person, its stock changes outside the online flow.
- Either feed POS sales into Odoo quickly, or keep retail locations out of online fulfillment.
Step 7: Choose Sync Triggers and Frequency
The best setups combine event-based updates with a regular full check.
| Trigger | When it runs | Why you need it |
|---|---|---|
| Stock change in Odoo | After a receipt, delivery, adjustment, transfer or reservation | Keeps Shopify close to real time |
| Scheduled sync | Every few minutes for changed products | Catches anything an event missed |
| Full reconciliation | Daily, outside peak hours | Corrects slow drift across all products and locations |
| Manual push | On demand | Fixes a single product after a correction |
Things to Know
- Shopify doesn't send webhooks for changes to committed, reserved, damaged, safety stock or quality-control states. Don't rely on Shopify webhooks to tell you everything.
- Send only changed products in frequent syncs to stay within Shopify's API limits.
- During sales campaigns, check that sync jobs keep up with order volume.
Choose the right timing with Real-Time vs Batch Synchronization With Odoo.
Step 8: Prevent Overwrites and Race Conditions
When an order and a stock update happen at the same moment, a plain "set quantity to X" can wipe out the order's effect and Shopify shows stock you no longer have.
- Use compare-and-set updates. Shopify's inventory mutations can check the current quantity before changing it. If the number changed in the meantime, the update is rejected instead of overwriting it.
- Re-read and retry after a rejected update, using Odoo's latest free-to-use quantity.
- Use idempotency keys where the API supports them, so a retried request isn't applied twice.
- Process updates in order for each product and location. An old update arriving late shouldn't replace a newer one.
- Never write stock from two systems, as Step 2 explains.
Read Retries and Idempotency in Odoo Integrations for the technical detail.
Handling Special Cases
Kits and Bundles
- In Odoo, a kit bill of materials calculates availability from its components.
- Send the kit's quantity based on its scarcest component.
- When a component sells on its own, update the kit's quantity too.
Selling on Several Channels
- Amazon, eBay, POS and wholesale orders all reduce the same Odoo stock.
- Import every channel's orders into Odoo quickly so free-to-use stock stays accurate.
- For limited stock, allocate a fixed share per channel instead of exposing everything everywhere.
Transfers Between Warehouses
- Stock leaving a warehouse should drop from its Shopify location immediately.
- Stock should appear at the new location only once it is received, not while in transit.
Returns
- Returned items go to a returns or inspection location first.
- Only items moved back to sellable stock should be sent to Shopify.
3PL Warehouses
- Treat the 3PL as its own warehouse in Odoo.
- Update Odoo from the 3PL's stock reports and shipment confirmations, then let Odoo update Shopify.
- Agree how often the 3PL reports stock and size the buffer for that delay.
Pre-orders and Back-orders
- Enable selling below zero only on products meant for pre-order.
- Show the expected ship date on the product page.
- Switch the setting off again once stock arrives.
Monitor Stock Accuracy Every Day
Even a well-built sync drifts over time. Daily checks catch problems before customers do.
| Check | How often | Warning sign |
|---|---|---|
| Shopify Available vs Odoo Free to Use (minus buffer), per location | Daily | Any difference on active products |
| Top-selling products | Daily, more often in campaigns | Mismatch or near zero |
| Failed inventory sync jobs | Daily | New or repeating errors |
| Orders not yet imported or confirmed | Daily | Orders older than your target time |
| Oversold orders | Weekly | Any order that couldn't be fulfilled |
| Variants allowing sales at zero | Weekly | Setting on where it shouldn't be |
| New Shopify locations or Odoo warehouses | Monthly | Location not mapped |
- When you find an oversold order, trace the cause: wrong quantity, delayed order, manual edit or another channel.
- Fix the cause, then push a fresh quantity for that product.
Set up the checks with Odoo Integration Reconciliation: Detecting Missing and Mismatched Data.
Common Mistakes That Cause Overselling
| Mistake | What happens | How to fix it |
|---|---|---|
| Sending On Hand instead of Free to Use | Reserved units are sold again | Send free-to-use stock minus buffer |
| Sending Forecasted quantity | Incoming stock is sold before it arrives | Exclude incoming unless selling pre-orders |
| Editing stock in Shopify | Odoo's next update overwrites it, or the edit breaks the numbers | Make Odoo the only system that changes stock |
| Counting returns or damaged stock | Unsellable units appear available | Exclude those locations from the calculation |
| Orders confirmed late in Odoo | Stock stays free while orders wait | Auto-confirm and reserve at confirmation |
| Sending one total for all warehouses | Shopify routes orders to a location with no stock | Send quantities per mapped location |
| Applying buffers in both systems | Too much stock is hidden and sales are lost | Use one buffer method only |
| "Continue selling when out of stock" left on | Shopify sells below zero | Turn it off except for pre-orders |
Multi-Warehouse Inventory Sync Setup Checklist
| # | Check | Done when |
|---|---|---|
| 1 | Warehouse-to-location mapping | Every location mapped or excluded and documented |
| 2 | Unsellable locations excluded | Returns, damaged, QC and transit left out |
| 3 | Odoo set as the source of truth | No stock edits in Shopify or other apps |
| 4 | Quantity rule | Free to Use minus buffer, never below zero |
| 5 | Safety buffers | Set by category, one method only |
| 6 | Order import and confirmation | Orders imported and confirmed within minutes |
| 7 | Reservation method | "At Confirmation" on delivery operations |
| 8 | Shopify overselling setting | Off for all non-pre-order variants |
| 9 | Fulfillment locations and routing | Match real warehouse operations |
| 10 | Sync triggers | Event-based, scheduled and daily full sync in place |
| 11 | Compare-and-set updates | No blind overwrites |
| 12 | Other channels | All channel orders reach Odoo quickly |
| 13 | Daily reconciliation | Report reviewed and differences fixed |
How Browseinfo Helps You Sell Only What You Have
As an Odoo Gold Partner with 13+ years of ERP experience and clients in 88+ countries, Browseinfo builds Shopify-Odoo inventory sync that holds up on your busiest days.
- Warehouse and location mapping designed around how you actually ship
- Accurate quantity rules using free-to-use stock and safety buffers
- Multi-store and multi-channel stock allocation
- Reliable sync with event triggers, scheduled checks and compare-and-set updates
- Audits of existing connectors that oversell or drift
- Ongoing monitoring and support after go-live
Explore our Odoo integration services and Odoo support services, or read our Shopify-Odoo integration and synchronization guide.
Frequently Asked Questions
1. How do I sync Shopify inventory with multiple Odoo warehouses?
Map each Odoo warehouse to a Shopify location, make Odoo the only system that changes stock and send each location its warehouse's free-to-use quantity minus a safety buffer. Combine event-based updates with a daily full reconciliation.
2. Which Odoo stock quantity should be sent to Shopify?
Send Free to Use, not On Hand or Forecasted. On Hand includes units already reserved for orders and Forecasted includes stock that hasn't arrived yet. Both can cause overselling.
3. Why is Shopify still overselling after I connected Odoo?
Common reasons are sending On Hand instead of Free to Use, orders confirmed late in Odoo, stock edited manually in Shopify, other channels sharing stock, unsellable locations counted as stock, or "continue selling when out of stock" left on.
4. Should Shopify or Odoo be the source of truth for inventory?
If your warehouses run in Odoo, Odoo should be the source of truth. All stock changes happen in Odoo and Shopify only receives quantities. Letting both systems edit stock leads to overwrites and mismatches.
5. Can one Shopify location show stock from several Odoo warehouses?
Yes. A many-to-one mapping adds up free-to-use stock from several warehouses into one Shopify location. It works best when Odoo, not Shopify, decides which warehouse ships each order.
6. What is a safety buffer in inventory sync?
It is a number of units held back from Shopify to absorb orders placed between syncs and small counting errors. Set larger buffers for fast sellers and multi-channel products and apply it in one place only.
7. How often should Shopify inventory sync with Odoo?
Send updates whenever stock changes in Odoo, run a scheduled sync every few minutes for changed products and do a full reconciliation daily. During sales campaigns, make sure sync jobs keep up with order volume.
8. How do I stop stock updates from overwriting each other?
Use compare-and-set inventory updates, which Shopify's inventory mutations support. If the quantity changed since it was read, the update is rejected and retried with fresh data instead of overwriting it.
9. How should kits and bundles sync to Shopify?
Base the bundle's quantity on its scarcest component, using Odoo's kit bill of materials. When a component sells on its own, update the bundle's quantity as well.
10. Should returned items go back to Shopify stock right away?
No. Send returns to a returns or inspection location first. Only items moved back into sellable stock after inspection should increase the quantity sent to Shopify.
11. How do I sync inventory when I also sell on Amazon or in retail stores?
Import every channel's orders into Odoo quickly so free-to-use stock stays accurate. For limited stock, allocate a fixed share to each channel and keep retail locations out of online fulfillment unless POS sales reach Odoo quickly.
12. How do I check if Shopify and Odoo stock match?
Run a daily report comparing Shopify Available with Odoo Free to Use minus the buffer, per product and location. Check top sellers more often and investigate every oversold order to find its cause.
Sell With Confidence Across Every Warehouse
- Overselling comes from small, fixable gaps, not from having several warehouses.
- Map locations carefully, send free-to-use stock minus a buffer and reserve stock the moment orders arrive.
- Let Odoo be the only system that changes stock and check accuracy every day.
- Need help? Our Odoo experts can review your setup and fix what's causing overselling.