OdooWiki OCA HUB

Optional validation of VAT via VIES

base_vat_optional_vies folder_open OCA/account-financial-tools open_in_new
Accounting License: AGPL-3

This module extends base_vat module features allowing to know if VIES validation was passed or not.

Then you can use "VIES validation passed" field in order to show VAT ID with or without country prefix in invoices, for instance.

NOTE: Although VIES validation is set in your company, this validation will not block VAT ID write (main difference to Odoo standard behavior) if this VAT ID is valid in its country.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a read-only "VIES validation" flag on contacts that records whether their VAT number passed the European VIES check, without blocking you from saving a VAT number that is valid in its own country.

This module extends the standard VAT validation so that you can see, on each contact, whether the VAT number was actually accepted by the European VIES service.

  • On the contact form, right after the VAT field, a read-only "VIES validation" checkbox shows the result. It is filled automatically when the VAT number or country changes, and when the VAT number is saved.
  • If the contact is a child of a company, it inherits the VIES result of its parent company instead of being checked on its own.
  • In Settings, under the VIES service option, a "Compute check vies" button lets you run a bulk check on all company contacts that have a VAT number and no VIES result yet. A confirmation warning appears first because it can take a long time, and a summary message shows how many contacts were processed and how many failed.
  • Unlike the standard behaviour, a VAT number that is valid in its own country is not blocked just because VIES did not confirm it; the flag simply stays unchecked.

The module touches res.partner and res.config.settings, and adds fields to the contact form and the settings screen.

Depends on

base_vat
Models and fields (2)
  • res.partner · extends an existing modelvies_passed (VIES validation)
  • res.config.settings · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/account-financial-tools.

terminal Installation and usage

OCA documentation · Odoo 16.0

In order to activate VIES validation, you must set this option in Settings: Settings > Account > Verify VAT Numbers

When VIES VAT Check is activated:

  • Odoo will try to validate VAT against VIES online service
  • If passed, then "VIES validation passed" field will be True
  • If not passed, then try to validate using country validation method
  • If validated, then "VIES validation passed" field will be False
  • If not validated, then a ValidationError will be shown to user

When VIES VAT Check is not activated:

  • "VIES validation passed" field will be always False

You must prefix VAT with country code (ISO 3166-1 alpha-2) and if you want to bypass country validation you can use "EU" code

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.