Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Localization
  3. Tunisian VAT Validation v 18.0
  4. Sales Conditions FAQ

Tunisian VAT Validation

by Bizup https://www.bizup.tn
Odoo
v 18.0 Third Party 6
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 18.0
You bought this module and need support? Click here!
Versions 17.0 18.0
  • Description
  • Manifest

Tunisian VAT Validation

Validate the Tunisian tax ID (matricule fiscal) with the official key-letter algorithm and fiscal code rules — right inside Contacts — Odoo 18

TUNISIA • VAT • MATRICULE FISCAL • CONTACTS • LOCALIZATION

Stop Invalid Tunisian VAT Numbers at the Source

Tunisian VAT Validation enforces the real structure of the Tunisian matricule fiscal directly on your contacts. It verifies the mandatory check (key) letter with the official modulo 23 algorithm, controls the fiscal situation and activity category codes, and blocks any invalid number before it is saved — with a precise, human-readable error. Everything runs locally: no external service and no internet connection required.

Key Features

01

Two Official Formats

Supports the simple format 1234567Y and the complete format 1234567Y/A/M/000 — including the regulatory variants.

02

Key-Letter Algorithm

Recomputes the mandatory check letter from the 7 digits using the official modulo 23 Tunisian fiscal alphabet (excluding I, O and U).

03

On-the-Fly Validation

A Python constraint blocks saving a Tunisian contact with an invalid VAT and stores a detailed error — catching mistakes at the moment of entry.

04

Fiscal Code Rules

Validates the VAT situation (A, B, P, F, N, D) and the activity category (M, C, P, N), and tolerates the reversed segment order used by some matricules.

05

Validate Button & Assistant

Trigger validation with a one-click Validate button on the contact form, or test any number with the standalone VAT Validation assistant.

06

Smart base_vat Override

Disables the generic base_vat check for Tunisia so only the local rules apply, while leaving validation for every other country untouched.

Built Right Into Contacts

Validation tools available where your team already manages partners.

✅

Inline VAT Tools on the Contact Form

A Validate button, the detected format type, a validated flag and a clear error message, right next to the VAT field.

📋

Dedicated Tax Registration Page

A « Tunisian Tax Registration » page shows the VAT, its format and its validation status — visible only for Tunisian partners.

🔍

List Columns & Standalone Assistant

See the validation status in the Contacts list, and open the VAT Validation assistant from the Technical menu to check any number instantly.

How It Works

From a Tunisian contact to a validated VAT number in a few clicks.

Step 1 - Create a contact located in Tunisia
STEP 1

Set the Contact to Tunisia

Create or open a contact and set the country to Tunisia. The VAT field becomes required for companies and the Tunisian validation rules take over.

Step 2 - Invalid Tunisian VAT is rejected
STEP 2

Invalid Numbers Are Rejected

Enter a wrong VAT and saving is blocked instantly. A precise message explains the expected key letter or the invalid fiscal code.

Step 3 - Valid Tunisian VAT is confirmed
STEP 3

Confirm a Valid VAT

Enter a correct number and the contact is flagged Tunisian VAT Validated, with its detected format (simple or complete) shown right away.

Step 4 - Standalone VAT validation assistant
STEP 4

Use the Standalone Assistant

From Settings › Technical, open the VAT Validation assistant to test any number on the fly — without creating or editing a contact.

Prerequisites

  • Odoo 18
  • Required modules: base, base_vat, contacts
  • Applies to partners whose country is Tunisia (TN)
  • No internet connection required — all checks run locally

Technical Information

Version 18.0.1.0.0
License LGPL-3
Author BIZUP
Website www.bizup.tn
Category Localization
Dependencies base base_vat contacts
Odoo Version 18.0

Standards & Scope

Validation implements the publicly documented structure of the Tunisian matricule fiscal: seven digits, an algorithmic key letter, a fiscal situation code, an activity category code and a secondary-establishment code. All checks are format and algorithm based and run entirely inside Odoo — the module does not contact any external registry or tax service.

Our Odoo Services

BIZUP is a dynamic Tunisian startup specializing in digital transformation and Odoo ERP solutions.
We bring fresh energy and expertise to accelerate your business growth.

Odoo Implementation

End-to-end ERP integration tailored to your business processes.

Odoo Development

Custom module development to meet your unique business needs.

Odoo Migration

Smooth migration to newer Odoo versions with zero data loss.

Odoo Training

Comprehensive training programs to empower your team on Odoo.

Need Help?

For support, customization requests, or any questions about this module, feel free to reach out to our team.

Visit Our Website contact@bizup.tn +216 98 991 922

Avenue Commandant Bejaoui, Immeuble El Hafianne Bloc A, 4000 Sousse, Tunisia

we help you grow

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Contacts (contacts)
• Discuss (mail)
• Invoicing (account)
Lines of code 338
Technical Name tn_vat_validation
LicenseLGPL-3
Websitehttps://www.bizup.tn

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with