Use Cases

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.

Full Odoo Demand History showing confirmed demand and warehouse out-of-stock days in the same period
Stockout evidence is visible in Demand History, Action Lines, filters, Planning Overview, and Control Tower exceptions.

Set the company default

  1. Open Settings > Niyu Smart Stock > Forecast Inputs.
  2. Choose Flag only, Estimate constrained demand, or Ignore stock availability.
  3. 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 exceptions