Odoo & ERP

AI for Odoo Inventory: Reordering, Forecasting and Stock Questions

Updated 7 min read

AI for Odoo Inventory: Reordering, Forecasting and Stock Questions

AI is useful in Odoo Inventory in three ways: it answers stock questions in plain language from live data, it reviews reordering and flags the exceptions a fixed rule misses, and it explains forecasts so planners can act on them. It is not a forecasting engine and it cannot count your shelves. The numbers come from Odoo and from proper calculations. The agent reads them, reasons about them and prepares drafts for a person to approve.

Key takeaways

  • Start with a read-only stock assistant. It is low risk and immediately useful to sales and support staff.
  • Odoo's reordering rules already handle routine replenishment. Add AI for exceptions and context, not to replace the rules.
  • Forecasts should be calculated from sales history with statistical methods. A language model explains and questions the result.
  • Agents should create draft requests for quotation, never confirmed purchase orders, and never adjust stock quantities.

What Odoo Inventory already automates

It is worth knowing what you have before adding anything. Odoo Inventory supports reordering rules, where you set a minimum and maximum quantity for a product and Odoo proposes or creates replenishment when the forecasted quantity drops below the minimum. Products can carry vendor lead times, and routes determine whether an item is bought or manufactured. Scheduled actions run these checks in the background.

For stable items with steady demand, this is enough, and it is fully predictable. The gaps appear at the edges: demand that changes with season or promotion, vendors whose lead times slip, rules set once and never revisited, and the many daily questions people ask about stock that require someone to open Odoo and look.

1. Stock questions in plain language

The simplest and safest use is an assistant that answers questions from Odoo's inventory data. Sales, support and management ask these all day:

  • "How many of this item do we have, and where?"
  • "Can we ship forty units to this customer this week?"
  • "When is the next receipt of this product due?"
  • "Which items are below their minimum right now?"
  • "Why is this delivery order still waiting?"

How it works

The assistant does not know your stock. It looks it up. Each question triggers one or more tool calls: find the product in product.product, read on-hand quantities by location from stock.quant, check open receipts and deliveries, then compose an answer from the results. The answer should state the figures and their source, for example the on-hand quantity, the reserved quantity and what is expected to arrive.

Two design rules keep this trustworthy. Every number in an answer must come from a tool result, never from the model's own estimate. And if a product name matches several items, the assistant asks which one instead of picking. We go deeper on this pattern in chat with your ERP.

Who should see what

Stock levels and costs can be sensitive. The assistant's Odoo user needs read access to Inventory only, and if the assistant is offered to customers or outside sales agents, limit it further, for instance to "available or not" instead of exact quantities, and never cost prices.

2. Smarter reordering

An agent adds value to reordering by reviewing, not by taking over.

Reviewing the rules themselves

Minimums and maximums are often set at implementation and then left alone. A scheduled job can compare each rule with recent movement history and list the ones that look wrong: items that ran out repeatedly despite the rule, items with a minimum far above anything they sell in a lead time, and active products with no rule at all. The agent turns that list into a readable report with a suggested change and the reasoning for each, and a planner decides.

Catching exceptions

Fixed rules do not notice context. An agent reviewing daily data can flag:

  • A large confirmed sales order that will consume more than the usual buffer.
  • A vendor whose recent receipts arrived later than the lead time on record.
  • A purchase order that is overdue with no update.
  • Stock that has not moved for a long period and is tying up cash.
  • Negative or implausible on-hand quantities that point to a process error.

Preparing purchase drafts

When replenishment is needed, the agent can prepare a draft request for quotation in Odoo Purchase: the vendor from the product's vendor list, the suggested quantity and a note explaining the calculation. A buyer reviews and sends it.

The agent should not confirm purchase orders, choose a new vendor on its own or change prices. Committing money is a human decision.

3. Forecasting: what AI adds and what it does not

The word "AI" covers two different things here, and mixing them up leads to bad projects.

JobRight tool
Calculating expected demand per productStatistical or machine learning methods applied to your sales history
Computing reorder points and safety stockFormulas using demand, variability and lead time
Explaining why a forecast changedLanguage model, given the figures
Combining figures with context such as a planned promotion mentioned in notesLanguage model, with a planner's review

A language model is not built to do arithmetic over thousands of rows of sales data, and asking it to "predict next month's demand" from raw numbers gives results you cannot rely on. The dependable design has code calculate the forecast, even with a simple method such as a moving average with a seasonal adjustment, and gives the agent the output to interpret.

Forecasting also has hard limits. New products have no history. One-off events distort the past. Small businesses with few sales per item have too little data for any method to be confident. In those cases the honest output is a wide range and a note that a planner's judgement should lead.

How the agent connects

The agent uses Odoo's external API as a dedicated user. For the read-only assistant, that user needs only read access to products, stock and transfers. For reorder drafting, add the right to create purchase documents in draft. A typical tool list:

  • Search product by name, reference or barcode.
  • Get stock by product and location.
  • Get incoming and outgoing transfers for a product.
  • List products below their reordering minimum.
  • Get sales history for a product over a period.
  • Create a draft request for quotation.
  • Post a note on a record.

Notice what is missing: no tool to adjust quantities, validate transfers or confirm orders. Leaving those out is the strongest guardrail you have, because an agent cannot misuse a tool that does not exist. This is the approach we take when building AI agents for Odoo and ERP.

What needs to be true first

  • On-hand quantities are accurate. If physical stock and Odoo disagree, every answer and every suggestion will be wrong. Fix counting and receiving discipline first.
  • Lead times and vendors are recorded. Reorder suggestions need them.
  • Products are not duplicated. Two records for one item split the history and confuse matching.

Related guides

Frequently asked questions

Can an AI agent place purchase orders automatically in Odoo?

Technically an agent could be given that right, but we advise against it. Have it create draft requests for quotation with its reasoning attached, and let a buyer confirm. For routine items, Odoo's own reordering rules already automate replenishment in a predictable way.

Is this different from Odoo's reordering rules?

Yes. Reordering rules apply fixed minimum and maximum quantities. An agent reviews whether those rules still make sense, spots exceptions the rules cannot see and explains its findings in plain language.

How accurate will the forecasts be?

That depends on your data, your products and how stable demand is, so nobody can promise a figure in advance. A sensible project measures forecast error on your own history before anyone relies on it.

Sources and further reading

Primary documentation and research behind this guide.

Inventory is a good place for AI precisely because the rules of the game are clear: read live data, suggest, draft and let a person commit. If you want to check whether your Odoo data is ready for it, Growmerz can take a look with you: book a free AI audit.