Skip to content

FBR & Tax

How to Integrate FBR Digital Invoicing with Odoo ERP

A practical look at what it takes to connect Odoo to FBR Digital Invoicing, from master data and tax mapping to submission, response handling and day-to-day operations.

Published
Published November 25, 2026
Last reviewed
Reviewed
Reading time
5 min read

Odoo is a natural place to handle FBR Digital Invoicing because customers, products, taxes and invoices already live in one database. Connecting Odoo to FBR is not just a matter of adding an API call, though. A reliable integration depends on correct master data, a clear mapping between Odoo's tax setup and FBR's requirements, and well-defined handling for rejections and outages. This article walks through the main stages of an Odoo integration as we approach it.

Requirements for Digital Invoicing depend on your taxpayer category and the applicable FBR notifications, such as SRO 1413(I)/2025. Field requirements and technical rules come from the official FBR and PRAL documentation. Confirm your obligations with your tax advisor before going live.

Stage 1: Confirm Scope and Scenarios

Before any configuration, list the invoicing scenarios your business actually uses. Typical questions include whether you sell to both registered and unregistered buyers, whether any products carry reduced rates or exemptions, whether you issue credit and debit notes, and whether more than one company or branch issues invoices. Each scenario becomes a test case later, and each should be reviewed with your tax advisor.

Stage 2: Prepare Odoo Master Data

Most integration problems begin with data. In Odoo, the key records are the company, customers, products and taxes.

  • Company: confirm the seller's registration details, address and province are complete and correct for every company that will submit invoices.
  • Customers: capture NTN or CNIC and registration status consistently, and merge duplicate partner records.
  • Products: assign the product classification FBR requires, such as HS codes, along with consistent units of measure and descriptions.
  • Taxes: make sure each Odoo tax record clearly represents one tax treatment, so it can be mapped without ambiguity.

Odoo allows custom fields and configuration to hold this information, and a Digital Invoicing module will usually add the fields needed for FBR-specific values. The work is in populating them correctly for your existing catalogue and customer base.

Stage 3: Map Odoo Taxes to FBR Requirements

Odoo calculates taxes using its own tax records and fiscal positions. FBR expects invoice data described in its own terms, as defined in the official documentation. The integration needs a mapping layer that translates each Odoo tax, and each relevant product or customer attribute, into the values FBR expects. This mapping should be documented, reviewed by finance, and kept under change control, because a wrong mapping can produce invoices that are accepted but reported incorrectly.

Stage 4: Configure Credentials and Environments

Access to FBR's systems uses credentials, such as security tokens, issued to the business through the official FBR and PRAL process. In Odoo, these should be stored securely, restricted to administrators and kept separate per company where you run more than one. Integrations are normally built and tested against a sandbox environment first, with production access enabled only after testing is complete.

Stage 5: Submission and Response Handling

  1. 01Pre-submission checks in OdooWhen a user confirms an invoice, the module checks required fields locally and blocks submission with a clear message if something is missing.
  2. 02Submission to FBRThe invoice data is formatted according to the official specification and sent using the company's credentials.
  3. 03Storing the FBR responseOn acceptance, the FBR invoice number and related data are saved on the Odoo invoice and shown on the printed document, typically with a QR code.
  4. 04Handling rejectionsOn rejection, the response is stored on the invoice, the invoice is flagged for review, and the responsible user is notified.
  5. 05LoggingEvery request and response is logged with a timestamp, so finance and support teams can trace exactly what happened to each invoice.

Stage 6: Credit Notes, Corrections and Outages

Once an invoice has been accepted by FBR, it should not be silently edited in Odoo. Corrections are usually handled through credit or debit notes, and how those are reported must follow the official requirements. Odoo's standard invoice locking and reversal features help here, but the module and user permissions should enforce the rule.

You also need a documented plan for when FBR's systems or your internet connection are unavailable. The integration should queue or flag unsent invoices and retry safely without creating duplicates. What your business is permitted to do during an outage should be confirmed against current FBR guidance.

Stage 7: Test, Train and Go Live

  • Run every scenario from Stage 1 in the sandbox and record the results.
  • Train invoicing users on what the new checks mean and how to respond to rejections.
  • Give finance a daily view of submitted, pending and rejected invoices.
  • Plan a controlled switch to production and monitor the first weeks closely.

Odoo Community and Version Considerations

At the time of writing, FBR Digital Invoicing is not included in standard Odoo, so it is delivered through a custom or partner module. The module needs to be built and tested for your specific Odoo version and edition, and maintained as FBR specifications evolve. When planning an upgrade, include the Digital Invoicing module in your upgrade testing.

Talk to TAYAS

TAYAS Consulting LLP has built its own FBR Digital Invoicing module for Odoo and helps businesses with data preparation, tax mapping, testing and go-live. If you run Odoo or are planning to, contact us to discuss your scenarios and how the integration would fit your setup.

Next step

Have a question about your own setup?

Share your current systems and what you need to achieve. We will tell you what is involved and what it depends on.

Chat with TAYAS on WhatsApp (opens in a new tab)