Skip to content
العربيةLet’s talk

Practical guide

How do you test ZATCA invoice clearance and reporting in Odoo?

Follow two Saudi test invoices through Odoo 20. Check clearance before sharing a standard invoice and verify the reporting time for a simplified invoice.

Lava Solutions · · 3 minute read

Eyeglasses and a yellow pencil rest on printed charts beside a calculator.
Illustrative stock photo. Photo: Cht Gsml / Unsplash.

A Saudi distributor sells the same carton of supplies to a business customer and to a shopper at its counter. When can each customer receive an invoice, and what should the accountant see in Odoo afterwards? For a business in ZATCA’s integration phase, a standard tax invoice normally goes to the Fatoora platform for clearance before it is shared with the buyer. A simplified tax invoice is issued to the customer and must be reported to ZATCA within 24 hours of generation. Your acceptance test should show both sequences.

Set up two examples with finance

Ask the finance lead to choose one transaction that requires a standard tax invoice and another for which a simplified tax invoice is appropriate. Have finance confirm the document type for each example before the demonstration. Use the same item, quantity and price in both so the team can concentrate on what happens to each document.

In the standard Odoo 20 Saudi localization, use a test copy configured for Simulation (Pre-Production) with a sales journal onboarded in that environment. Have the demonstrator show the selected environment and journal before confirming either test invoice. Odoo documents a Process now action in the banner on a confirmed invoice. The response from ZATCA appears in the invoice’s message history, which Odoo calls the chatter.

Follow the standard invoice to the buyer

For the standard invoice, record the invoice number and ask the demonstrator to show the clearance result for that same number. Open the XML attachment from the invoice record. Identify the cleared document that would be shared with the buyer and show where the team checks clearance before sending it. If the submission was rejected, keep that example open and assign the correction to a named person. A PDF preview on its own cannot answer whether clearance succeeded.

Follow the simplified invoice back to the reporting result

For the simplified invoice, start with the customer’s copy and its QR code. Record when the invoice was generated, then find the reporting response for that invoice in Odoo. Check the time of reporting against the generation time. The code on the customer’s copy and the acknowledgement from Fatoora answer different questions. A cashier can show the first while an accountant is still investigating the second.

Fictional example. A shopper’s simplified invoice is generated at 4:10 p.m. on Monday in Riyadh. Its 24-hour reporting window ends at 4:10 p.m. on Tuesday. If finance checks at 9 a.m. on Tuesday and finds no acknowledgement, the accountant should trace the submission and assign someone to resolve it that morning. In the same demonstration, the business customer’s standard invoice is ready for the buyer only after finance has verified clearance under the normal workflow.

Read the response before signing off

  • Accepted or accepted with warnings. Odoo documents response 200 for success and 202 for success with warnings. Record the actual result. For a warning, keep its text with the test case and agree who will investigate it.
  • Rejected. For a 400 rejection, read the detailed error and record who will correct it. Have the team demonstrate the appropriate correction in simulation and retain the subsequent response alongside the original result.
  • Clearance switched off by ZATCA. The authority documents a specific exception. If it returns response 303 indicating that clearance is disabled, the standard document goes through the reporting route. Keep the response with the case. A local timeout alone does not establish that this exception applies.

Keep one row per test invoice with its type, number, environment, generation time, submission time, response and time received. Add a follow-up owner for every unresolved item. Record what you actually observed in simulation. For the wider rollout, see the Odoo accounting setup checklist. To plan a review with Lava’s Odoo team, share your Odoo version and the two transaction types you need to cover.

Sources & further reading

A useful next step

Bring one real workflow.

Share the process you want to improve, the systems involved and the decision you need to make.

Talk to Lava ↗