Every week someone in your company decides how much to buy. Usually it's a gut feeling, or last month's number times something. Too little and the shelf is empty. Too much and your cash sits in the warehouse.
The chart below is one real Walmart product.
Grey is what it sold.
Green is what our module predicted for the next 4 weeks, using only the history before that date.
Black is what really sold.
It's not the best one we found. Out of 40 random Walmart food products, this one sits right in the middle: the 4-week total was 15% off.

What is forecasting anyway?
Some magical wizarding thing? No. Its math. Well yes then u can call it modern wizardry.
But of course no math model is perfect, no forecast is perfect, but as a legendary statistician, George Edward Pelham Box, says:
"The fact that the polynomial is an approximation does not necessarily detract from its usefulness because all models are approximations. Essentially, all models are wrong, but some are useful."
George E. P. Box and Norman R. Draper, Empirical Model-Building and Response Surfaces (1987), p. 424
So yes its not a 100% guarantee that your sales would be exactly like the forecast says, but it's still useful, for three reasons:
- It only has to beat what you do now. Your current forecast is a guess or a spreadsheet average. Being less wrong than that is already money.
- It tells you how wrong it usually is. A forecast that says "about 300, give or take 40" lets you decide how much safety stock you want. A gut feeling doesn't come with a margin.
- It does the boring part for every product, every week. Nobody has time to look at 20,000 products by hand. The forecast handles the products that behave normally, so you can spend your time on the ones that don't.
Now, for the forecast, you can use a simple one like FORECAST.LINEAR (Excel has that built in) or FORECAST.ETS (Excel 2016 and later) picks up a repeating pattern, like a weekly cycle. For couple of product, that's a fine start.
But when you have thousand of products, several warehouses, vendors with different lead times and minimum order quantities, and a purchase order to write by Monday. A forecast alone doesn't tell you how much to buy. That's the part our module does.
Here's the demo video:
Heres the comparison with real world data. I use Walmart as an example.

On real Walmart data, the module lost 21% fewer sales than a spreadsheet average, without keeping more stock.
Walmart published 5 years of daily sales for 3,049 products in 10 stores (the M5 forecasting competition, 2011 to 2016). We took 1,000 random product-and-store pairs and played purchasing manager three times: 28 February, 27 March and 24 April 2016.
Each time, every product started with an empty shelf and got one order: enough for 7 days of delivery time plus 21 days of stock. Then we checked that order against what Walmart really sold in those 28 days. Did it cover the demand? How much was left over?
We compared three ways to decide the order:
- Spreadsheet average: the last 90 days' daily average × 28. A common rule of thumb in Excel.
- Prophet, common setup: Meta's Prophet with yearly seasonality turned on. A setup you see in a lot of tutorials.
- PORTOKO Forecast: our module on Auto, default settings.
And the truth comes:
- Same leftover stock, more sales. Against the spreadsheet, demand covered went from 80.0% to 85.0%, and lost sales per cycle dropped from $25,380 to $20,097. Leftover stock stayed the same (11.8% vs 11.7%).
- A more sophisticated model doesn't automatically mean better purchasing decisions. Prophet covered almost as much demand, but left nearly twice as much stock on the shelf. More cash stuck in the warehouse.
- It's not magic. Even our best setup still missed 15% of demand. Supermarket items are noisy. In real life you reorder every week, which closes part of that gap. This test only allowed one order.
TL;DR: Our Forecasting module performed better in this test. It covered more sales without requiring more leftover inventory. That's the purchasing decision we wanted to improve.
How does it work, in a nutshell?
- Read what already happened. Sales per product per warehouse (deliveries minus returns), stock on hand, purchase orders on the way, and each vendor's lead time and minimum order.
- Forecast every product. Three models each predict daily sales: Nixtla StatsForecast, Meta Prophet, and a weekday-aware moving average. (Uber Orbit is there too, if you want it.) Auto mode takes the middle value for each day, so one model having a bad day doesn't wreck the number.
- Sanity-check the forecast. If it says sales will drop to less than half the recent pace, it uses the recent pace instead. If it predicts more than 3× normal sales with no promotion planned, it gets cut back. Products that are too new to judge are flagged. Products that stopped selling are listed as dead stock, never as "buy more".
- Turn it into a purchase quantity. Expected sales until the next delivery arrives plus the days of stock you want to keep, minus what you have, minus what's already on the way, rounded up to the vendor's minimum or pack size.
- You decide. Change any number, send big orders for approval, and click once to create one RFQ per vendor. Every line explains its own math.
- It grades itself. Four weeks later, it compares what it predicted with what really sold, so you see how accurate it is on your own products.
So... what do you think?
Want this on your Odoo? Thinking about moving to Odoo? Don't hesitate to contact us :)
Oh, and one more. If you're an Odoo agency and want this module for your own clients, contact us too. There's a special price and licence for agencies. 😉