Picture a wholesaler with two warehouses, a small retail counter, and about four hundred invoices a month. They've been on Odoo for two years, printing invoices with a QR code, and everyone is reasonably happy. Then a notice arrives giving them a date to integrate with Fatoora. Suddenly the question stops being "does our invoice look right" and becomes "will ZATCA accept this XML, and what happens to our sales if it doesn't."
That jump from Phase 1 to Phase 2 is where most of the confusion sits. Phase 1 was about the shape of the document: a QR code, the right fields, Arabic alongside English. Phase 2 is about a conversation between your system and ZATCA's. Your invoices get signed, stamped, chained to each other, and sent over an API before or shortly after they reach the customer.
So the work is no longer a printing job. It's an integration job, and it touches your master data a lot harder than people expect.
What Phase 2 actually asks of your system
Two flows, and they behave very differently.
Standard tax invoices, the B2B ones you issue to another VAT-registered business, go through clearance. Odoo builds the XML, signs it, sends it to ZATCA, and waits. ZATCA returns a cleared copy with its own stamp, and that cleared document is the one you're supposed to share with the buyer. If the call fails, you have an invoice sitting in Odoo that technically isn't finished yet.
Simplified invoices, the B2C ones from your counter or shop, go through reporting. You issue them immediately, customer walks out with the printout, and the document is sent to ZATCA afterwards within the window the rules allow. This is why the two flows feel so different in daily use: one blocks, the other queues.
Underneath both, a few technical things are now true. Every invoice carries a UUID. Every invoice carries a hash of the previous one, so your documents form a chain in sequence. Each device or billing unit that issues invoices needs its own identity, registered through the Fatoora portal with a one-time password, which produces the certificate Odoo then uses to sign. Break the chain or mix up which unit issued what, and you spend a weekend untangling it.
Waves, formats, and the finer compliance points do get revised. Confirm your own integration date and the current technical requirements with your accountant or directly with ZATCA rather than trusting a blog post, including this one.
Getting Odoo onboarded with Fatoora
In a current Odoo with the Saudi localization installed, the pieces live in a few predictable places.
Under Settings > Accounting, you'll find the ZATCA section where you enroll your billing unit and paste the OTP from the Fatoora portal. Odoo requests the certificate and stores it. You do this per journal that issues invoices, which is the part people miss: if sales from your retail counter post to a different journal than your B2B sales, both need onboarding, and the simplified and standard flows should be kept apart on purpose.
Then there's the sandbox. Use it. Run a standard invoice, a simplified invoice, a credit note, and a debit note through the test environment and read the responses properly. ZATCA's validation messages are specific but blunt, and they'll tell you exactly which XPath in the XML is wrong. What we usually see is a cluster of failures that all come back to master data rather than code: a partner with no VAT number in the right format, a product with no Arabic name, a unit of measure that doesn't map to a standard code, a company address missing half its parts.
Fixing those in the test phase takes an afternoon. Fixing them after go-live, with sales staff waiting, takes a lot longer and makes everyone nervous. We build these country-specific pieces from the official rules and keep them editable by date for exactly this reason, which is what /services/odoo-localization/ is about.
The national address is not optional
Here's the thing that quietly blocks more go-lives than anything else.
Saudi invoices expect a proper national address on both your company and, for standard invoices, your business customer. Not a free-text line. Building number, street, district, city, postal code, and the additional number. Six separate fields that sales and accounts teams have never been asked to collect before, because a phone number and a landmark were always enough to get the truck there.
So you discover it during onboarding: three hundred business partners with "Industrial Area, near the bridge" in the street field and nothing else. Someone now has to call them.
The practical shortcut is the short address, the four letters and four digits format that identifies a location. If your team can get that one code from a customer, the rest of the address can be filled in from it. That's the whole idea behind /odoo-apps/sa-national-address/: type the short address on the contact form or at checkout and the full national address lands in the proper fields, so the XML has what it needs and the delivery note is actually useful to the driver. If you sell online, the same fields belong in your checkout flow next to your payment options, alongside whatever local methods you offer such as Tamara.
Make the address a required field for new business customers before your integration date. Nobody enjoys that conversation, but it's cheaper than clearance failures.
Then comes the VAT return
E-invoicing and the VAT return are related, and plenty of people treat them as the same project. They aren't.
Clearance tells you ZATCA accepted a document. It says nothing about whether the numbers you file at the end of the period actually tie back to your books. We've seen companies pass integration cleanly and then still file a return built in a spreadsheet, because nobody trusted Odoo's tax report enough to use it directly.
The fix is boring and works: reconcile the return to the journal items. The ZATCA return has its fields from 1 to 16, with the adjustment column, and every one of those boxes should be traceable to posted invoices and bills in Odoo. Standard rated sales, zero rated, exempt, exports, imports with reverse charge, each sitting on the right tax so it lands in the right box. When a figure looks wrong, you want to click the box and see the invoices behind it, not rebuild it by hand.
That's what /odoo-apps/sa-vat-return/ does: compute the return from your own posted documents and open the journal items behind every field. If a credit note from last period is pulling your adjustment column around, you can see which one in about ten seconds.
One habit worth adopting: run the return in draft a week before filing, not on the deadline. Posting corrections is calm in week three and frantic on the last afternoon.
A rollout order that works
If you're starting now, this sequence keeps the surprises small.
- Confirm your integration date and obligations with your accountant.
- Clean master data first: company address, partner VAT numbers, national addresses, Arabic names on products and partners.
- Decide your journal structure, keeping standard and simplified invoicing separate.
- Onboard in the sandbox, run all four document types, and read every validation error.
- Train the counter staff on what to do when a call fails, because it will happen on some Thursday afternoon.
- Go live on one journal, watch it for a week, then move the rest.
- Reconcile the VAT return to the journal items for the first full period after go-live.
Questions we get asked
Do we need an external middleware service?
Not necessarily. Odoo's Saudi localization can talk to ZATCA directly, and for most businesses that's simpler to support and cheaper to run than adding another vendor in the middle. Middleware starts to make sense when you issue invoices from systems outside Odoo too, like a separate POS or a telecom billing platform, and want one place handling signing and submission.
What happens if ZATCA is unreachable when we issue an invoice?
Simplified invoices are the easy case: they queue and get sent when the connection returns, so the shop keeps selling. Standard invoices are the ones to plan for, since clearance is meant to happen before you hand the document to the buyer. Agree internally on what your team does during an outage, and make sure someone checks the queue daily instead of discovering a hundred stuck invoices at month end.
Can we keep using our customised invoice layout?
Mostly yes, as long as the required content and QR code are present and the XML is built from the right data. Your PDF is for humans. ZATCA cares about the XML. Where we usually do rework is in custom modules that write values straight onto the invoice and bypass the fields the localization reads from.
Talk to us
We work remotely with teams in Saudi Arabia on Odoo localization, e-invoicing integration, and the reporting around it. If you have an integration date coming up or a return that won't tie back to your books, tell us what your setup looks like and we'll give you a straight answer about the work involved. Request a quote or contact us and we'll take it from there.
