The Recompute Step: How to Verify an AI Agent's Numbers Against Odoo 20 and MYOB Acumatica Before a Person Approves
AI agent output verification in plain code: re-derive each total, GST amount, date and record from Odoo 20 or MYOB Acumatica before a person approves.
By Josh Craig, Managing Director, Auboros ·
The recompute step is plain code, not a model, that re-derives every number in an AI agent’s draft from the ERP records and compares the two before a person sees it. In Odoo 20 it lives in the tool’s Python code; in MYOB Acumatica in the tax validation, a Generic Inquiry formula or an approval map condition. As at 10 November 2026 neither platform ships it as a feature.
At a glance
- Who it is for: CFOs, finance managers and ops leads of Australian businesses on Odoo or MYOB Acumatica who already run or are piloting a drafts-first agent (supplier bills, sales orders, reconciliation matches, credit notes) and want to know what checks the draft before the approver does.
- Problem it solves: an approver who is asked to sign fifty agent drafts a day stops reading them by Thursday. The recompute step catches the arithmetic, identity and date errors in code, so the person’s attention goes to the judgement calls the code cannot make.
- Platforms: Odoo 20 Enterprise (AI server action tool code, computed totals, the tax rounding method setting); MYOB Acumatica 2026.1 (Validate Tax Totals on Entry, Generic Inquiry formulas, business events, approval maps); agents connected over MCP (the checker runs in the orchestrator between the read and the write).
- Trigger: an agent produces a draft that contains a number, a record reference or a date: a bill, an order, a payment allocation, a reorder quantity, a credit recommendation.
- Inputs read: the agent’s draft and the arguments it proposed, the source document it worked from (the PDF, the bank line, the email), and the ERP records it claims to have used: product prices, tax codes, open invoices, stock on hand, payment terms.
- Systems: the same ERP read access the agent has, under the same user; the tool or script that would perform the write; a flag field or note on the record for the result.
- What the checker does: re-adds the lines, recomputes GST at 10 per cent under the rounding rule the ERP uses, recomputes due dates from terms, confirms every cited record exists and belongs to the right partner, compares each result with the agent’s figure, and writes the differences onto the draft as a note.
- Approval gate: unchanged. A person approves every write. The checker decides only which drafts arrive with a “no differences” note and which arrive with a list of mismatches, and nothing with a mismatch is ever auto-approved.
- Audit trail: the agent’s figures, the recomputed figures and the differences are stored on the record (Odoo 20 chatter or an AI field; a MYOB Acumatica custom field or the Tax Details tab) so the approver and the auditor see both columns.
- Typical cycle time: under a second per draft; the checker runs inside the same tool call or business event that would have saved the draft.
- What it never does: post, approve, release, pay or change a figure to make it match. A mismatch is reported, never corrected by the code.
- Typical cost: part of a scoped pilot from A$5,000 ex GST per our AI agents for ERP in Australia hub, as at 10 November 2026; the checker is a day or two of the build, not a separate product.
- Typical timeline: written in the first week of a pilot, before the agent is allowed to draft anything a person has to approve; tuned against the first fortnight of drafts in the sandbox.
- Last verified: 10 November 2026 against the Odoo 20 AI server actions documentation, the Odoo 20 Enterprise and Community source, MYOB’s tax amount validation page, MYOB’s business events page, MYOB’s Approval Maps form reference and the ATO’s tax invoices page.
Every agent we run, for ourselves or for a client, has the same shape: it reads, it drafts, a person approves. Buyers hear that and ask the right follow-up question, which is what the person is actually approving. If the honest answer is “whatever the model wrote”, the approval gate is a signature on a form nobody read. By the third week the approver has fifty drafts a day and is skimming. The errors that get through are not the exotic ones. They are a transposed digit in a bill total, GST rounded the wrong way, a due date counted from the wrong date, a payment allocated to an invoice that belongs to a different customer with the same trading name.
The recompute step is the piece of the build that exists so the approver never has to find those. It’s the part of our pattern people ask about least and the part we’d give up last.
What is the recompute step?
The recompute step is a short piece of ordinary code that runs after the agent drafts and before the approver sees the draft. It takes every number, record reference and date in the draft and derives it again from the ERP’s own data, with no model involved, then compares the two sets. Where they match, the draft is marked clean. Where they differ, the difference is written onto the draft, in both columns, and the draft waits for a person exactly as it would have anyway.
The reason it has to be code and not a second prompt is the nature of the first one. Language models produce, in OpenAI’s own words from its September 2025 note on why models hallucinate, “plausible but false statements”, and a model asked to check its own total is making a second probabilistic guess, not a calculation. A line of Python that adds three numbers is not guessing. Odoo’s own documentation for AI server actions draws the same line: the AI server action “does not enforce business rules, modify records directly, or guarantee the correctness of the operation”, and “tools must enforce business rules explicitly in Python code”, per the Odoo 20 AI server actions page. The recompute step is one of those business rules.
We run this on our own work, not only on client agents. Our content pipeline is a set of research and drafting agents whose output a person reviews before anything is published. Between the agent and the person sits a validator script that counts characters in a title tag, counts words in a summary, scans for characters and phrases we don’t allow and refuses to hand the draft on if any check fails. The agent that wrote the draft never grades it. The reviewer sees the validator’s output first and the draft second, and the validator has caught more than the reviewers have. That is the whole argument for the pattern, in one sentence.
Which numbers should the checker recompute?
Anything the agent produced that the ERP can also produce, which turns out to be most of it. We group the checks into four kinds.
- Arithmetic. Line quantity times unit price equals the line subtotal; lines sum to the document subtotal; GST equals 10 per cent of the taxable amount under the rounding rule the ERP applies; subtotal plus GST equals the total the agent quoted and the total printed on the source document. The ATO’s tax invoices page (QC22438, updated 18 September 2026) allows GST to be rounded per taxable sale or on the invoice total, to the nearest cent with half a cent rounding up, so the checker has to know which rule your ERP is set to before it declares a one-cent difference an error.
- Identity. Every record the agent cites exists, is the type it says it is, belongs to the partner on the draft, and is in a state where the proposed action makes sense: the invoice the agent wants to allocate a payment to is posted and unpaid; the product it put on the order is active and sold in that unit of measure; the supplier it matched is the one on the ABN printed on the bill.
- Dates. The due date equals the invoice date plus the partner’s payment terms as the ERP holds them; the delivery date the agent quoted equals the scheduled date on the delivery and not a day it inferred; the bill date is not in a locked period.
- Headroom. Figures that are a comparison rather than a total: credit headroom equals limit minus balance minus open orders; a reorder quantity equals the rule’s maximum minus forecast stock; a reconciliation match’s difference equals the bank amount minus the invoice amount, and if it is not zero the agent had better have named a fee or an FX difference.
The checker recomputes and compares. It does not decide. If the recomputed credit headroom is negative, the checker writes “headroom minus A$3,120” onto the draft and the credit controller decides what that means, which is the point of our credit management agent pattern and every other one.
A worked example: a supplier bill with a transposed total
A national equipment importer runs an accounts payable agent of the kind in our AI accounts payable agent post. A supplier emails a PDF bill. The agent reads it, matches the supplier, matches two of the three lines to purchase order lines, and drafts a bill with three lines at A$1,250.00, A$880.00 and A$1,990.00 ex GST. It reports the supplier’s total, incl GST, as A$4,523.00.
The recompute step runs inside the tool that saves the draft. It adds the lines: A$4,120.00. GST at 10 per cent, rounded per the company’s setting: A$412.00. Total: A$4,532.00. The agent’s figure is A$4,523.00. Difference: A$9.00. The checker also confirms the three products exist, the supplier matches the ABN on the PDF, the bill date falls in an open period, and the due date the agent proposed equals the bill date plus the supplier’s 30-day terms. One mismatch out of nine checks.
The tool saves the bill as a draft, as it always would, and posts a note: “Agent total A$4,523.00; recomputed total A$4,532.00; difference A$9.00; all other checks pass.” In the morning the AP officer opens the draft, sees the note before the lines, opens the PDF and reads the supplier’s printed total: A$4,532.00. The agent transposed two digits when it reported the figure. The lines were right, the ERP’s total is right, and the officer approves. Had the printed total been A$4,523.00, the same note would have sent her to the supplier about a pricing error before anything was posted. Either way the person spent her attention on a nine-dollar question the code had already found, not on re-adding three lines.
The recompute step is the least glamorous thing we build and the one I’d fight hardest to keep. A model wrote the draft, so a model cannot be the thing that checks it. Three lines of arithmetic in code, run every time, is what lets the approver trust the clean drafts and slow down on the flagged ones.
Josh Craig, Director, Auboros
Where does the recompute step live in Odoo 20?
In the tool. Odoo 20’s AI server actions split the work between the AI action, which the documentation calls the manager, and the tools, which are standard server actions with Use in AI enabled. The manager reads the record, interprets the prompt and chooses a tool and its arguments. The tool runs its Python code, and the documentation is blunt about what that means: “If a tool is called by the AI server action, it will execute unconditionally, unless the code itself prevents it.” The code is where the recompute step goes, before the write. Our approval gate post covers how the same tool code holds the draft for a person; the checker is the few lines above that hold.
Two Odoo details make the Odoo version short to write. First, Odoo already recomputes an invoice or order’s tax and total from its lines, so the checker rarely has to add anything itself. It creates the draft with the agent’s lines, reads back the amounts Odoo computed and compares them with the figures the agent reported. The company’s Rounding Method setting under Accounting settings decides whether tax is rounded per line or once on the total, which is the choice the ATO’s two rounding rules describe, and the checker reads the setting rather than assuming one. Second, in the Odoo 20 Enterprise source, tool code runs with superuser mode switched off and the record passed to the tool is the non-sudo record, so the checker’s reads are limited to what the triggering user can see. A checker that cannot read a record reports “could not verify”, which is a mismatch, not a pass.
The same tool pattern holds when the agent is one of Odoo 20’s scheduled or automated agents rather than a chat; our Odoo 20 scheduled agents post covers where the person comes back in. For a bank reconciliation agent the checker reads the statement line amount and the matched invoices’ residuals and confirms the difference is zero or named; for a sales order agent it confirms each product and unit of measure and that the pricelist Odoo applied matches the price the agent quoted from the customer’s PDF order.
Where does the recompute step live in MYOB Acumatica?
In three places, and the first one is already built. MYOB Acumatica’s Accounts Payable Preferences form (AP101000) has a Validate Tax Totals on Entry checkbox which, per MYOB’s tax amount validation page, adds a Tax Amount box to the bill where you enter the tax printed on the vendor’s document; after the lines are added the system computes the tax under the applicable tax settings, “generates an error if there is any discrepancy”, and “does not allow you to process the document until you correct the tax amount”. An agent that drafts a bill through the API and writes the supplier’s printed GST into that box has handed the recompute step to the platform. The Net/Gross Entry Mode feature on CS100000 has to be enabled for the box to appear.
For everything the tax check doesn’t cover, the second place is a Generic Inquiry plus a business event. Have the agent write the figures it reported (total, due date, matched document reference) into custom fields on the draft, build a Generic Inquiry that puts those fields next to the document’s own computed values, and set a business event on it. Per MYOB’s business events page, a record-change event fires when values “meet the specified conditions”, conditions can use formulas that compare two fields, and the event’s subscribers can send an email or push notification, create a task from a template or run an import scenario. A mismatch becomes a task on the AP officer’s list with both figures in it, created the moment the draft is saved.
The third place is the approval map. The Approval Maps form (EP205015) lets each rule carry conditions of the form field, condition, value, with operators such as Is Greater Than and Is Between, and approvals apply to AP bills, AR invoices, sales orders, purchase orders, journal transactions and the rest of the list on the approval configuration page. A rule that reads a “recompute difference” field and routes anything non-zero to a named approver, with a zero Decision Wait Time so it waits indefinitely, is a recompute gate built from the platform’s own parts. MYOB Acumatica’s AI Automation prompts write only into fields a user could edit, so an agent drafting through AI Automation feeds the same fields.
What about agents connected over MCP?
The checker moves into the orchestrator, between the read and the write. An external agent that reads Odoo 20 through its built-in MCP server, or Acumatica through the MCP connection that arrived in the global 2026 R2 release on 1 October 2026 (MYOB Acumatica in Australia and New Zealand typically follows 6 to 9 months later), gets its records back as tool results. Before the orchestrator calls any write tool it runs the same recompute in code against those results and refuses to call the write if a check fails, writing the mismatch to the draft instead. Our MCP for ERP post covers the connection; the rule here is that the checker runs on the same side of the connection as the write, so nothing can reach the ERP without passing it.
| Check | Odoo 20 | MYOB Acumatica | Agent over MCP |
|---|---|---|---|
| Lines sum to subtotal, GST and total | Tool code reads back the amounts Odoo computed and compares them with the agent’s figures; Rounding Method setting read, not assumed | Validate Tax Totals on Entry (AP101000) for the GST figure; a Generic Inquiry formula for the rest | Orchestrator code over the tool results, before the write tool is called |
| Cited records exist and belong to the partner | Tool code under the triggering user’s rights (no superuser); “could not read” counts as a mismatch | Generic Inquiry joins the agent’s references to the real documents; business event fires on a missing join | Orchestrator reads each record by ID and compares the partner field |
| Due date equals document date plus terms | Tool code compares the agent’s date with the date Odoo computed from the payment terms | Business event formula compares the agent’s date field with the document’s due date | Orchestrator recomputes from the terms record it read |
| Headroom (credit, reorder, reconciliation difference) | Tool code recomputes from the fields and writes the figure to chatter; never decides | Generic Inquiry formula column; approval map rule routes non-zero differences to a named approver | Orchestrator recomputes and attaches the figure to the draft note |
| Result stored for the approver | Chatter note or an AI field with both columns | Custom fields, Tax Details tab, task created by the business event | The draft note plus the orchestrator’s own log |
What do the regulators expect you to check?
Nothing in Australian law names a recompute step, but three documents describe the obligation it meets. The OAIC’s guidance on commercially available AI products says Australian Privacy Principle 10 requires reasonable steps to ensure personal information generated by AI is accurate, and that a human should be responsible for verifying the accuracy of personal information obtained through an AI tool. A due date and an amount owed on a customer’s account are personal information when the customer is a sole trader. The National AI Centre’s Guidance for AI Adoption of 21 October 2025 lists testing and monitoring AI systems and human oversight among its six essential practices and names inaccurate information as a harm to guard against. The joint guidance on careful adoption of agentic AI services from ASD’s Australian Cyber Security Centre and its partner agencies says to prevent agents from executing high impact actions without prior human approval. The recompute step is how the approval stays a check rather than a reflex, and the stored result is the evidence; our audit trail post covers where that evidence should live.
Where does the recompute step go wrong?
- The model writes the checker. A coding agent generates the recompute code from the same prompt that produced the draft, and reproduces the same misunderstanding of the rounding rule in both. Fix: a person writes or reviews the checker, and it has its own tests with known-bad drafts.
- The checker trusts the agent’s inputs. It re-adds the lines the agent extracted instead of reading the ERP’s lines, so a misread quantity passes. Fix: recompute from ERP records and the source document, never from the agent’s intermediate output alone.
- Arithmetic only. The totals match and the bill is on the wrong supplier. Fix: identity checks sit beside the arithmetic, and the supplier is matched on ABN, not name.
- False precision. The checker flags a one-cent GST difference that is the ERP’s rounding method doing its job. Fix: read the rounding setting and apply the ATO rule the ERP applies; then a cent is a cent.
- Silent holds. A failed check stops the write and tells nobody, so the draft sits for a week. Fix: every mismatch creates a visible note or task with both figures, and someone owns the mismatch queue.
- The checker is bypassed under load. Month-end arrives and someone turns the check off to clear the queue. Fix: the checker is in the tool code or the approval map, not in a switch the approver can reach; our hallucination guardrails post covers the other four guardrails it sits alongside.
How to start
Pick the one agent you already run or are about to pilot, list every number, reference and date in its draft, and write the recompute for each one in the language the platform gives you: Python in the Odoo 20 tool, a Generic Inquiry formula and business event or approval map condition in MYOB Acumatica, a function in the orchestrator for an MCP agent. Run it against two weeks of sandbox drafts before the agent is allowed near a live approver, and keep the mismatch log; it is the first honest measurement of how often the agent is wrong, which is a number most AI vendors would rather you didn’t have. We write the recompute step in the first week of every AI agent pilot, before the prompts, because a draft nobody can check is not a draft anyone should approve.
Goes well with
- AI hallucination guardrails: the other four controls the recompute step sits beside
- The approval gate is in the code: how an Odoo server action waits for a person
- The AI agent audit trail: what to record and where it lives
Running an agent whose drafts a person signs without really checking?
We build the recompute step into every drafts-first agent we deliver on Odoo 20 and MYOB Acumatica for Queensland and Australian businesses, and we’re in Brisbane, so the person who wrote the checker is the one who explains a mismatch to your AP officer. If you want to know what your current agent’s drafts would look like with both columns on them, book a free consultation. Bring one week of drafts and we’ll tell you how many the code would have caught.
FAQ
Frequently asked questions
What is the recompute step in an AI agent workflow?
It is a short piece of ordinary code that runs after an AI agent drafts a document and before a person approves it. It re-derives every total, GST amount, due date and record reference from the ERP's own data, compares each with the agent's figure, and writes any differences onto the draft. It never posts, approves or corrects anything; it tells the approver where to look.
Why can't the AI agent check its own numbers?
Because a model asked to check a total is making a second probabilistic guess, not a calculation. Language models produce plausible but false statements, in OpenAI's own words, and the same misunderstanding that produced the error can reproduce it in the check. A line of code that adds three numbers and applies the ERP's GST rounding rule is not guessing, which is why Odoo's documentation says tools must enforce business rules explicitly in Python code.
How do you verify an AI agent's output in Odoo 20?
In the tool code. Odoo 20 AI server actions choose a tool and its arguments, and the tool's Python code executes unconditionally unless the code itself prevents it. The tool creates the draft with the agent's lines, reads back the tax and total Odoo computed, compares them with the figures the agent reported, confirms every cited record exists under the triggering user's rights, and writes the result to the chatter before holding the draft for a person.
Does MYOB Acumatica have a built-in way to check an AI-drafted bill?
For GST, yes. With Validate Tax Totals on Entry switched on in Accounts Payable Preferences, the bill carries a Tax Amount box for the figure printed on the supplier's document, the system computes the tax from the lines and will not let the document be processed while the two differ. For other figures, a Generic Inquiry formula with a business event, or an approval map condition that routes any non-zero difference to a named approver, does the same job.
Does the recompute step replace human approval of AI agent drafts?
No. A person still approves every write. The recompute step decides only which drafts arrive marked clean and which arrive with a list of mismatches, so the approver's attention goes to the judgement calls the code cannot make. The ASD's joint guidance on agentic AI says high impact actions should not execute without prior human approval, and the OAIC says a human should verify the accuracy of personal information an AI tool produces.