تخطي للذهاب إلى المحتوى
السفر

How to Setup Custom Sales Invoice Number Sequence in Odoo 19?

AN · يونيو 25, 2026

If you are using Odoo for accounting, one small thing that can create big confusion is invoice numbering. Many business owners don’t realise this at first. But when audits start, or when invoices increase, that’s when problems appear.

That’s why understanding the custom sales invoice number sequence in Odoo 19 is not just a technical task. It directly affects your accounting clarity, reporting, and compliance.

Maybe you are thinking:

  • How to change the invoice sequence in Odoo?
  • How can I do a proper Odoo invoice numbering format setup?
  • Is Odoo 19's custom invoice number sequence flexible enough for my business?
  • How do I configure the sales invoice sequence in Odoo 19 without breaking previous invoices?

In this blog, I am going to explain everything, and I’ll guide you step by step so you can set up your custom sales invoice number sequence in Odoo 19 with confidence.

Understanding Custom Sales Invoice Number Sequence in Odoo 19 Before You Configure It

Before we configure anything, you need to understand how Odoo 19's sequence numbers for invoices actually work.

In Odoo, every invoice number is generated automatically using a sequence. This sequence is linked to your Sales Journal. When you confirm an invoice, Odoo assigns the next number based on that sequence.

By default, the format looks something like this:

  • INV/2026/0001

This format is part of the default Odoo invoice numbering format setup. It usually includes:

  • A prefix (like INV)
  • The year
  • A running number with padding

Now imagine your business is growing. You open multiple branches. You need branch-wise numbering. Or your tax authority requires a specific format. That’s when you need proper Odoo accounting invoice number customization. And yes, Odoo 19 allows you to do that properly.

Why Businesses Need Odoo 19 Custom Invoice Number Sequence

Let me ask you something. If tomorrow your auditor asks, “Why does this invoice jump from 1050 to 2001?” Will you be able to explain clearly? This is why many companies choose to configure sales invoice sequences in Odoo 19 carefully.

Here are common reasons:

First, compliance. Some countries require continuous numbering without gaps.

Second, financial year tracking. Many businesses want invoice numbers to reset every year.

Third, branch-specific formats. For example:

  • LHR/INV/2026/0001
  • KHI/INV/2026/0001

Fourth, internal control. When your Odoo 19 sequence numbers for invoices are structured properly, reporting becomes easier.

So, if you are planning long-term growth, setting up a proper custom sales invoice number sequence in Odoo 19 is not optional. It is necessary.

How to Configure Sales Invoice Sequence in Odoo 19 Step by Step

Now I will explain how to configure the sales invoice sequence in Odoo 19 simply and safely. First, activate Developer Mode. To access advanced sequence settings:

Go to Settings.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Scroll down, Activate Developer Mode, and click Save. Developer mode allows you to access technical settings required for Odoo accounting invoice number customization.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Next, open the Accounting Module.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Move to the Customers > Invoices.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Select the invoices, move to the Actions > Resequence.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Choose the order, provide the first new sequence and then you can see the before and after sequence. Now, click Confirm.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Here, you can see Resequence.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Now, let me show you what would have happened if I were creating a new Invoice. Click New.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Select the customer, add the product, then click Confirm.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

Now, you can see that the current or next invoice line is created.

how-to-setup-custom-sales-invoice-number-sequence-in-odoo-19

So, that’s how you can easily resequence or customize the sequence of invoice lines in sales or accounting.

Odoo Invoice Numbering Format Setup – Understanding Each Field

When you open the sequence, you will see different fields. Let’s understand them clearly.

Prefix

This defines the starting part of your invoice number. For example:

  • INV/
  • SALES/
  • ABC/INV/

You can also use dynamic values like:

  • %(year)s
  • %(month)s
  • If you write:
  • INV/%(year)s/

Then every year Odoo automatically changes the year in invoice numbers. This is part of the advanced Odoo invoice numbering format setup.

Padding

Padding controls how many digits your running number has. If padding is 4, your numbers will look like:

  • 0001
  • 0002
  • 0003

If padding is 5:

  • 00001
  • 00002

This is what we call a custom invoice prefix and padding in Odoo. Padding keeps your invoices structured and professional.

Next Number

This field tells Odoo what the next invoice number should be. Be very careful here. If your last invoice was INV/2026/0100, and you set the next number to 50, you will create duplicate numbering.

Whenever you perform an invoice sequence in Odoo, always check the last confirmed invoice first.

How to Change Invoice Sequence in Odoo Without Creating Issues

This is a very sensitive task. Many users directly edit the existing sequence. But that can create confusion in accounting records. Here’s the safer approach. Instead of modifying the current sequence, create a new one. Go to: Settings → Technical → Sequences. Create a new sequence.

Define:

  • New prefix
  • Padding
  • Increment
  • Date ranges, if required

Then assign this new sequence to your Sales Journal. This method ensures a clean Odoo 19 custom invoice number sequence configuration without disturbing old invoices.

Custom Invoice Prefix and Padding in Odoo for Financial Year Reset

Many businesses want invoice numbers to reset every year. For example:

  • 2025 invoices start from 0001
  • 2026 invoices again start from 0001

To do this:

  • Open your sequence.
  • Enable “Use Date Range.”
  • Then create yearly ranges.

For each year:

  • Define start date
  • Define end date
  • Set starting number

This is a common requirement when businesses configure the sales invoice sequence in Odoo 19. With this setup, Odoo automatically resets numbering every financial year.

Odoo 19 Sequence Numbers for Invoices in Multi-Branch Companies

If you are running multiple branches, you should not use the same sequence for all branches. Instead:

  • Create separate Sales Journals for each branch.

Assign different sequences like:

  • DUBAI/INV/%(year)s/
  • ABU DHABI/INV/%(year)s/

This way, your custom sales invoice number sequence in Odoo 19 becomes branch-specific. When reporting time comes, you won’t mix Dubai invoices with Abu Dhabi invoices. This small step can save you from reporting confusion later.

Advanced Odoo Accounting Invoice Number Customization for Growing Businesses

Sometimes, default settings are not enough. Maybe you want:

  • Customer-type-based numbering
  • Sales team-based numbering
  • Different numbering for online and offline sales

In such cases, technical customisation is required. Through development, Odoo 19 custom invoice number sequence can be extended to support advanced rules.

But before going into development, always check if the configuration alone can solve your problem. In most cases, proper setup is enough.

Common Mistakes While Setting Up Custom Sales Invoice Number Sequence in Odoo 19

Let me warn you about common errors.

  • First mistake: Changing the sequence after invoices are already posted. This can break your audit trail.
  • Second mistake: Not checking draft invoices. Draft invoices may pick up unexpected numbers.
  • Third mistake: Ignoring legal requirements. Some tax authorities require strict continuous numbering.
  • Fourth mistake: Randomly changing the next number. This creates duplication.

When you understand how Odoo 19 sequence numbers for invoices work, these mistakes can easily be avoided.

Take Control of Your Invoice Structure in Odoo 19 Today

Setting up a proper custom sales invoice number sequence in Odoo 19 is not just about changing digits. It is about keeping your accounting clean, your reports clear, and your business ready for audits and growth. When your Odoo 19 sequence numbers for invoices are structured properly, you avoid confusion, duplication, and compliance risks.

Now you clearly understand how to change invoice sequence in Odoo, how to configure sales invoice sequence in Odoo 19, and how to manage custom invoice prefix and padding in Odoo without disturbing existing records. A well-planned Odoo invoice numbering format setup gives you confidence that your system is organized from day one.

If you are unsure about updating your current sequence or want professional support for complete Odoo accounting invoice number customization, this is the right time to take action.

Need help configuring your Odoo 19 custom invoice number sequence correctly?

Contact Netilligence today and let our Odoo experts review your setup and guide you step by step toward a clean and compliant invoice structure.