An AI agent for Odoo that handles supplier delays
A late supplier can leave your customers without goods. Claude, through the Hawklify MCP server, finds the Odoo orders at risk and plans the fix.
- Real run on Odoo 18, 27 Nov 2026
- Claude + Hawklify MCP server
- 20 Odoo reads in 4.5 seconds
- 4 changes wait for a person
It is Friday morning and a supplier writes: “the restart slips from 8 Dec to 18 Dec”. Somewhere in that e-mail are 70 oak panels that will now arrive in January. Somewhere in your Odoo are four production orders that need them and five customers who were promised a date.
Working that out by hand means opening the purchase order, the manufacturing orders, every sales order, the customers’ notes and their last e-mails, and then deciding who gets the few panels you have. It takes an afternoon, and it is easy to miss the one customer with a penalty clause.
We gave the same e-mail to an AI agent connected to Odoo. It found the five customers at risk and planned the fix: 20 panels from the supplier’s Riga stock for $180, and a walnut shelf of the same size for the library. Late orders go from 3 to 1, and every change that spends money or touches a customer waits for a person. This article shows what it read, what it decided and what it changed, with the numbers of the run.
The app is at the end of the article. The agent's app with the data of this run: switch the views, read Claude's plan and the e-mails waiting for approval.Go to the app ↓The problem: one e-mail, five customers
- Supplier e-mail+23 daysThe kiln restart slips: 70 panels and 30 shelf kits move from 21 Dec to 13 Jan.
- Parts short62 of 76Panels in time for production: 12 on hand + 50 on 30 Nov.
- Production orders4Conference tables and desks that need those panels.
- Customer orders$49,985Five customers, each with a date promised.
Who should get the panels? The answer is in four different places in Odoo:
- Grand Meridian Hotels2% penalty a weekCustomer note · installers booked 5 Dec
- Public LibraryBinding tender dateCustomer e-mail · opening on 19 Dec
- Kessler ArchitectsCan wait to 11 JanCustomer e-mail on the sales order
- Bright Dental Clinic$2,608 overdueUnpaid invoice · "cash is tight"
The solution in one minute
- Claude reads the supplier’s e-mail and PDF, follows the parts to four production orders and five customers, and reads what each customer wrote.
- It decides: take 20 panels from the supplier’s Riga stock for $180, offer the library walnut shelves for $320, move Kessler to the date they accepted, and keep the hotel with the penalty first.
- It acts: five internal changes done by itself, four that spend money, change a promise or write to a customer wait for your click.
What the supplier wrote
The company in this test makes oak furniture. Purchase order P00022 to Nordic Timber Supply covers 120 oak panels and 30 oak shelf kits. The panels go into four production orders (conference tables and desks), and those feed five sales orders worth $49,985.
On 26 November Nordic sent a revised order confirmation as a PDF: 50 panels on 30 November, the other 70 on 21 December, subject to a kiln restart. On 27 November came the e-mail that matters:
The supplier’s e-mail, read from the purchase order’s chatter. The app highlights dates, quantities and money.
The 70 panels and the 30 shelf kits now arrive on 13 January 2027. Nordic also offers 20 panels from its Riga stock on 16 December, at $9 extra per panel, if you answer by 2 December.
What Odoo shows, and what it cannot see
Odoo plans with the dates typed on the purchase order, so it still expects the panels on 21 December. Even with those dates, three orders are already late. It does not know that the real date is now 13 January, and it cannot tell you what to do about it.
One e-mail, two parts, four production orders, five customers. Each customer card shows what the AI found in its notes and e-mails.
None of the facts in the cards above is on the purchase order, and no Odoo report puts them side by side. A backup supplier, a walnut shelf kit with the same dimensions and a draft request for quotation are in the database too.
Deadlines with Odoo’s own dates: the bars show when each customer’s goods can be ready, the flags show the date promised.
The agent: detect, trace, plan, act
The agent is a small app built as a Claude artifact. It talks to Odoo only through the Hawklify MCP server, with the permissions of the Odoo user who opens it. It works in four steps.
- Detect. One read script checks every open purchase order and every supplier e-mail of the last 14 days. On our database it checked 9 open purchase orders and found news on one.
- Trace. A second script follows the parts to production orders and sales orders, and collects the customers’ notes, their recent e-mails, overdue invoices, backup suppliers, possible substitutes and draft quotations. It also reads the PDF attached to the purchase order.
- Plan. Claude reads all of it, rebuilds the supply day by day with the supplier’s real dates, and decides who gets the scarce panels.
- Act. The safe changes run on one click. The rest waits for a person.
The app as it opens: one incident, the four steps, and what the supplier said.
Claude’s plan
This is the part that is hard without AI. Claude weighed the options with the numbers from Odoo:
- Take the 20 panels from Riga on 16 December: they are already on order, so the only extra cost is the surcharge, 20 × $9 = $180. They arrive before Kessler’s production order starts on 22 December. The backup supplier would have cost $686 for panels nobody needs after January, so its draft quotation stays as a fallback.
- Offer the library walnut shelf kits at the oak price. Same dimensions, same fixings, 26 in stock. The cost difference is 20 × ($88 − $72) = $320, and it saves a binding tender date. Because it changes what the customer receives, it needs the library’s written OK.
- Move Kessler’s promised date to 11 January, which the customer asked for in writing.
- Keep Grand Meridian first in line for the 30 November delivery, and confirm the 4 December date they asked about.
- Put Bright Dental last: five kits on 3 December, five after 13 January, and a reminder about the overdue invoice.
The plan shows its arithmetic: 12 panels on hand + 50 on 30 November = 62; 24 + 20 + 16 = 60 for the first three production orders; Riga covers the fourth.
The result: late orders go from 3 to 1 for an extra cost of $500. The one order still late is the customer with the overdue invoice, and that was a choice, not an accident.
The same timeline with the plan. Kessler’s flag moves to 11 January, the date the customer accepted.
What the AI does by itself, and what waits for you
Every action Claude proposes goes into one of two lanes. The app decides the lane from the type of action, not Claude, and it checks that every record in an action belongs to this incident. An action that names a record outside it is dropped.
- Claude can do this now: set the shelf kits’ arrival to 13 January on the purchase order, log internal notes on the purchase order and the production order, and add two to-dos (check the 30 November receipt, ask for the overdue payment). All internal, all easy to undo.
- Needs your OK: the e-mail accepting the Riga offer ($180), the e-mail to the library about walnut shelves, the new promised date for Kessler, and the confirmation to Grand Meridian. Each e-mail can be edited before it goes, and Hawklify may ask for one more confirmation before a message leaves Odoo.
Left, the internal changes. Right, what spends money, changes a promise or writes outside the company.
Install it as a desktop app
The app is a Claude artifact, so it opens in the Claude desktop app and can be installed with one click on Install as app. Installed, it:
- checks Odoo on a schedule, as often as your team needs,
- shows the number of open incidents on its dock icon,
- sends a notification when a supplier writes about an open purchase order.
It needs the Hawklify connector in Claude, set up with your Odoo user. The documentation explains how to connect Claude to Odoo in a few minutes.
Why it needs an MCP server
An AI model knows nothing about your Odoo. The Hawklify MCP server gives Claude tools to read and change Odoo safely: read scripts that run many reads in one call, writes checked against your Odoo permissions, and approval rules you set for each person. The AI acts as your Odoo user, so it can never see or do more than you can.
The same server works for the small daily tasks too. Our Odoo guides each end with two AI examples, from a quotation to a bank reconciliation.
The app, with the data of this run
Attachment read by Hawklify · NTS-SO-88412-rev2.pdf
1 earlier message
From one vendor e-mail to every customer it touches
When each customer's goods can be ready, against the date promised
From one vendor e-mail to every customer it touches
When each customer's goods can be ready, against the date promised
From one vendor e-mail to every customer it touches
When each customer's goods can be ready, against the date promised
Nordic's restart slipped from 8 to 18 Dec, so 70 oak panels and all 30 shelf kits now arrive on 13 Jan 2027 instead of 21 Dec. The 50-panel partial is still due on 30 Nov, and Nordic offers up to 20 panels from Riga on 16 Dec at $9 extra each, if we answer by 2 Dec.
OAK-P18: 12 on hand + 50 on 30 Nov = 62 MO10 24 + MO11 20 + MO12 16 = 60, 2 spare MO9 needs 16 by 22 Dec: 20 from Riga on 16 Dec, 4 + 2 = 6 spare SHF-OAK: 5 on hand, the 30 only on 13 Jan (TBC) Library: 20 SHF-WAL (26 free) at the oak price of $189 Bright Dental: the 5 oak kits on 3 Dec, 5 more after 13 Jan
Claude can do this now · 5
Reversible changes inside Odoo: dates, reservations, notes, to-dos and draft RFQs nobody receives.
Needs your OK · 4
These spend money, change a promise to a customer or write to someone outside the company. Edit them if you like; nothing runs until you approve. Hawklify may ask once more before a message goes out.
- A short or late receipt on 30 Nov hits Grand Meridian first (2% per started week)
- The Riga offer expires on 2 Dec
- If the library refuses walnut, its shelves arrive only on 13 Jan
- Re-check 30 Nov: receipt of the 50 panels (WH/IN)
9 Hawklify MCP callslast: run_read_script · radar: purchase → manufacturing → sales ✓Stock math and Hawklify calls ▾
OAK-P18 Oak Panel 18mm 2440x1220
Confirmed supply covers demand.
SHF-OAK Oak Wall Shelf Kit
Red: demand above what the vendor actually confirmed.
Frequently asked questions
Can standard Odoo do this?
Partly. Once someone types the new date on the purchase order, Odoo's Forecasted report shows which orders get the stock and which become late. Odoo does not read the supplier's e-mail or PDF, does not know which customer can wait or pays a penalty, and does not weigh a backup supplier against a substitute product. That reading and judgment is the part the AI agent does.
Does the AI change Odoo without asking?
Only for small internal changes that are easy to undo: an expected arrival date, a production start, an internal note, a to-do. Anything that spends money, changes a date promised to a customer or writes to a customer or supplier waits for a person to approve it. The app decides which is which, not the AI.
Do I need to install a module in Odoo?
No. The agent reaches Odoo through the Hawklify MCP server with an Odoo API key, as your own Odoo user. It sees and changes only what that user can, on Odoo 16 to 20, Community or Enterprise.
Which AI does it use?
This app runs on Claude. The Hawklify MCP server also works with ChatGPT and other assistants that support MCP connectors.
Can it run in the background?
Yes. Installed as a desktop app, it checks Odoo on a schedule, as often as you need, shows the number of open incidents on its dock icon and sends a notification when a supplier writes about an open purchase order. The schedule runs in the app, not in Odoo: no module and no Odoo scheduled action to set up.
Questo articolo è disponibile anche in italiano: Un agente AI per Odoo che gestisce i ritardi dei fornitori