E-invoicing · Odoo

Connecting Odoo to Fatoora: the Phase 2 steps

If your business is in Wave 25, your invoicing system must be connected to ZATCA’s Fatoora platform by 1 February 2027. The wave covers businesses whose revenue subject to VAT exceeded SAR 187,500 in any year from 2022 to 2025. If you use Odoo, you can do the integration from inside Odoo with its Saudi e-invoicing module. This guide walks through the steps in order, from preparing your data to your first cleared invoice.

Published ·

Download the Wave 25 readiness checklist (PDF)

Odoo version

Before you start

  • Confirm your wave and deadline in ZATCA’s notice or in your account on the Fatoora portal.
  • Check your Odoo version. Phase 2 needs a recent version that includes the Saudi e-invoicing modules. If yours is older, plan the upgrade before you start.
  • List every point that issues invoices: sales journals, branches and points of sale. Each invoicing unit needs its own registration with ZATCA.
  • Name one person in accounting to follow the integration and the invoice statuses after go-live.

Step 1: Enable the Saudi localization and the e-invoicing module

In Accounting ‣ Configuration ‣ Settings, make sure the package under Fiscal Localization is “Saudi Arabia - Accounting”. Then install “Saudi Arabia - E-invoicing” (l10n_sa_edi) from Apps. If you use Point of Sale, also install “Saudi Arabia - E-invoicing (Simplified)” (l10n_sa_edi_pos) for POS receipts.

Step 2: Complete your company data

In Settings ‣ General Settings ‣ Companies ‣ Update Info, make sure these are filled in:

  • Your legal company name, as in the commercial registration.
  • Your VAT number (15 digits).
  • Your commercial registration or other required ID, under Additional Identifiers on the company.Your commercial registration or other required ID, in the Identification Scheme and Identification Number fields.
  • Your full national address: building number, street, district, city, postal code and additional number, which Odoo calls “Secondary Number”. The building number and the additional number must have 4 digits each.Your full national address: building number, street, district, city, postal code and additional number, which Odoo calls “Plot Identification”.

Most rejections in the first days come from missing data in this section.

Step 3: Complete your business customers’ data

A tax invoice to a business needs the customer’s VAT number and full national address. Review your business customers before you connect and fill in anything missing; the same fields are on each contact. Simplified tax invoices to individuals don’t need this data.

Step 4: Review your tax setup

Make sure every product and service has the right tax: standard rate, zero-rated or exempt. For zero-rated and exempt items, the invoice must state the reason for the exemption or zero rating.

In Odoo, the reason is set on the tax itself (Accounting ‣ Configuration ‣ Taxes), in the Tax Exemption Reason Code field, which appears on 0% sales taxes.In Odoo, the reason is set on the tax itself (Accounting ‣ Configuration ‣ Taxes), in the Exemption Reason Code field, which appears on 0% sales taxes.

Step 5: Test in Simulation mode

Odoo has three integration modes: Sandbox, Simulation and Production. Start with Simulation, which is linked to the simulation environment of the Fatoora portal.

You choose the mode in Accounting ‣ Configuration ‣ Settings, under ZATCA E-Invoicing Settings, in the API Mode field.You choose the mode in Accounting ‣ Configuration ‣ Settings, under Saudi Arabia Electronic Invoicing, in the API Mode field.

  • On the Fatoora portal (simulation environment), generate a one-time password (OTP) to register a new invoicing unit. It is valid for one hour, so use it right away.
  • In Odoo, open Accounting ‣ Configuration ‣ Journals, choose your sales journal and open the ZATCA tab. It lists the three onboarding steps: compliance certificate, compliance checks and production certificate. Click Onboard Journal, enter the OTP and confirm; a tick appears next to each step once it is done.In Odoo, open Accounting ‣ Configuration ‣ Journals, choose your sales journal, open the ZATCA tab, click Onboard, enter the OTP and confirm.
  • Issue a test invoice of every type you use: tax invoice, simplified invoice, credit note and debit note.
  • Follow the status of each invoice in Odoo (cleared, reported or rejected) and read ZATCA’s message for it.
  • Simulation invoices are not legally valid; they are for testing only.

Step 6: Move to Production

Once every document type has passed testing in Simulation:

  • Change the integration mode in Odoo to Production and save. Changing the mode cancels the registration of every journal, so each one must be registered again.
  • Generate a new OTP on the Fatoora portal (live environment) and register each sales journal again, each with its own OTP.
  • Issue your first real invoice and check that it is cleared.

Once the first invoice is sent in Production, you cannot go back to Simulation. Don’t send any test invoice in this mode: it counts as an official invoice.

Step 7: Follow up after go-live

  • Check rejected or pending invoices every day during the first weeks.
  • Don’t send a tax invoice to the customer before ZATCA clears it. If it is rejected, correct the data and send it again.
  • Simplified tax invoices must be reported within 24 hours of being issued, so make sure they are sent without delay.

Common mistakes

  • Missing national address data for your company or a customer.
  • A product with no tax, or with the wrong tax.
  • A credit note that doesn’t refer to the original invoice or give a reason.
  • Registering one journal and forgetting the branches’ journals or the points of sale.
  • Moving to Production before testing every document type.
  • Starting the integration in the last week before the deadline.

This guide is for orientation; menu names can differ between Odoo versions. For the official requirements and the latest updates, see ZATCA’s website (zatca.gov.sa).

Questions

How long does it take to connect Odoo to Fatoora?

If your data is complete and your Odoo version is recent, the connection itself can take a few days. Preparation and testing usually take longer, so we recommend starting several weeks before the deadline.

Do I need to register every branch or point of sale?

Yes. Every unit that issues invoices, whether a journal or a point of sale, needs its own registration with ZATCA, with its own OTP.

What if my Odoo version is old?

You may need to upgrade first, because Phase 2 support is in recent versions. Plan the upgrade and test it well before your deadline.

Can we test without affecting our real invoices?

Yes. Simulation mode is made for that, and the invoices issued in it are not legally valid.

Need help connecting Odoo to Fatoora?

We review your settings and data, and test every invoice type with you in Simulation before you go live.