About 5 months ago I asked here if anyone had actually survived running Odoo 18 POS in high-volume retail on low-end hardware without it laagging or worse.. freezing mid-shift (https://www.reddit.com/r/Odoo/comments/1un9mvd/has_anyone_successfully_implemented_odoo_18_pos/).
But thank God I finally can ship it across 6 branches (26 registers total, ~15,000 products, 12-hour shifts in Chrome kiosk mode with 20 to 100 items per basket). Some PCs are Celerons with 4 GB RAM, and a few older ones only have 2 GB (its not as smooth as 4GB Ram, but still can be usable). It is finally stable in production, so I figured I'd share what actually broke, including a nasty bug we caused ourselves.
First problem was offline shifts. Out of the box Odoo POS handles a router reboot fine, then falls apart if a branch loses internet in the morning or at closing. You can't boot a register with no server, and you can't close a shift that never saw the internet.
We shipped a service worker + IndexedDB setup so cashiers could open, sell all day, count cash, close the shift, and open the next day offline.
But a couple of months earlier, in the very first version of it, a register closed with more money in the drawer than Odoo had recorded. We traced it and found 14 consecutive paid orders missing from an outage window. The culprit was our own cleanup timer that ran every 20 minutes and deleted paid orders older than 30 minutes assuming they had synced. During the outage they hadn't, Chrome compacted its storage, and those 14 orders were gone for good.
So heres what we rebuilt for offline capabilities:
- Every paid order now goes into an append-only local ledger with durability before the receipt screen appears. Our code never deletes from it (sync status updates in place). The 20-minute timer is gone.
- Odoo's own journal only holds open baskets and unconfirmed orders, and a paid order leaves it only after the server sends back a numeric ID.
- If the server doesn't answer in 3 seconds, the cashier moves on, see it as offline state, and the order gets marked UNKNOWN. Before retrying any unclear sync, the register asks the server which UUIDs it already has so a slow connection doesn't turn one sale into two, backed by a unique index on order UUID in Postgres.
- Built a standalone recovery page that reads both IndexedDB stores straight off the PC even if the POS app won't boot and exports them to JSON. Deleting the local ledger from there requires exporting first and typing a confirmation phrase.
- Added a single-tab lock to prevent cashiers from opening two POS tabs by accident.
Second problem was the 2-4 GB Celeron lag. After a few hundred orders in a 12-hour shift, registers lagged on every scan and a few froze until someone reloaded the page. Profiling a J1800 test PC with 2 GB RAM showed two separate bottlenecks:
- Rewriting the entire order store on every scan. Odoo POS rewrites its entire order store in IndexedDB whenever anything changes. Over 300 orders that came to 3,683 full reads of the store, 915 ms per write pass on average, and a main thread frozen 79% of the time. With 12 parked baskets, rewriting all of them on each scan cost about 200 ms. We changed it so a basket change only writes that basket (using a cheap fingerprint check to skip unchanged parked baskets), and a payment writes just that order to the ledger.
- Rendering and searching the card grid. We swapped the product card grid for a text-only list capped at 50 rows by telling Odoo there are zero products to display on the standard grid. Switched off transitions, animations, shadows, hover effects, and backdrop blur, and CSS-contained the results list. When the screen opens, we build two in-memory Maps once (by barcode/packaging barcode and product ID). Exact barcode scans return immediately; typed searches wait 60 ms, match barcode prefixes first then codes then names, stop after 50 hits, and cache the last 20 queries dropping one at a time. Stock and wholesale tiers only load when someone taps the info icon.
On 15,000 demo products with Chrome CPU throttled 4x, a first-time typed search dropped from a median of 1,786 ms on stock Odoo 18 to 275 ms (including the 60 ms typing delay). After 30 searches, stock JS heap grew from 151 MB to 293 MB vs 157 MB to 180 MB on ours. Stock Odoo still wins on repeating the exact same search (15 ms vs ~160 ms to redraw rows), and Odoo still keeps completed orders in memory until session close which we're still measuring.
Dumbest bug we shipped with the fast search: the barcode index stored keys in lowercase, the lookup didn't lowercase the scanned string, so any barcode with a capital letter came back empty in production until we fixed one method call. Also had a separate non-code issue on one machine where a wrong Windows system clock messed with session dates.
Honestly, if a client can afford 8-16 GB mini PCs and reliable fiber, tell them to do that instead. LOL.