Stockouts and Special Product Workflows
Choose stockout handling for normal stocked products and safe overrides for MTO, project, service, seasonal, and backorder workflows.
Stockout-aware forecasting separates recorded demand from evidence that unavailable stock may have suppressed sales. It is most appropriate for normal stocked products where a zero-stock day can prevent an otherwise likely sale.

Set the company default
- Open Settings > Niyu Smart Stock > Forecast Inputs.
- Choose Flag only, Estimate constrained demand, or Ignore stock availability.
- Save and run a new forecast.
What each mode does
- Flag only: keep recorded demand and show that forecast quality may be affected.
- Estimate constrained demand: send compact warehouse stockout intervals and allow conservative added demand only for confirmed zero-sales stockout days when supported by backend evidence.
- Ignore stock availability: do not use warehouse stock history in the adjustment decision.
- Recorded demand is never removed in any mode.
Use Planning Rule overrides
- Normal stocked product: company default is usually appropriate.
- Made-to-order or project product: use an override or exclusion because zero stock may be intentional.
- Non-stock service: exclude or ignore stock availability.
- Intentionally seasonal item: use a demand event or specific rule; zero stock outside season is not necessarily constrained demand.
- Backorder-driven product: avoid adding estimated demand when confirmed backorders already capture the need.
Exceptional demand is a different problem
Stockout handling addresses missing demand caused by unavailable stock. Demand Reviews and Demand Events address unusual recorded demand such as storms, promotions, launches, closures, or temporary low-sales periods. Both preserve the original Odoo transactions.
Older backend compatibility
The Odoo addon can receive older backend results without stockout fields. Such lines show availability as unknown and stale stockout evidence is cleared instead of being carried forward.
Choose a documented baseline treatment for unusual recorded demand.
Review demand exceptionsMulti-Warehouse Rebalancing and Transfer-Then-Buy
Configure safe same-company donor allocation, timing, networks, hub roles, and transfer-plus-buy execution.
UoM, Whole Units, MOQ, Case Packs, and RFQ Quantities
Keep demand and supply consistent in stock UoM, then apply executable rounding, supplier constraints, schedules, and purchase-UoM conversion.
