Odoo Help


How do i make VAT number check during import work properly?

Alberto Franceschi
on 1/11/14, 2:04 PM 3,122 views

Unregardless of how accurately i check my csv file, the import form keeps on telling me that something is wrong in the VAT numbers i am importing. So i spent a whole hour in checking them on the VIES site on the advice of one of the open ERP assistants. This site only verifies VAT numbers of subjects that are registered in the INTRA office. By checking the numbers on the Italian Ministry of Economics, all my VAT numbers come out to be properly recorded. Eventually i had to exclude the VAT number column from importing, and inserted them by copy/paste. Funny that the "validate VAT number" button on the client form now tells that the number is correct. So i guess that there is somenthing wrong in the constraints that open ERP uses to validate the table upon the import process. I point that i have no base_vat module installed Would it be possible to remove the control, or at least know what the constraints are in order to make all the number compliant?

Alberto Franceschi
On 1/13/14, 11:33 AM

I am not really able to go trough the codes that Ray sent me, nevertheless i can see that, at some point, the sistem checks on the VIES site if the VAt number is valid. As i i have said in my previous message, this site only lists IT VAT codes as correct if they are in the INTRA register fo intra-european union operations. So many of them will probably result incorrect. Would be better to check them on the italian ministry of economics (i am sorry, i am not allowed to post links) but if you put "verifica partita iva agenzia delle entrate" in google, it should be the first link. Thanks anyway, and sorry for my partial understanding of codes.

Alberto, from Vies web page / FAQ: "The data is real-time. Each time you make a request, a message is sent to the Member State which issued the VAT identification number asking if the number quoted is valid."

Erppian, Harri Luuppala
on 2/19/14, 12:13 PM

Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 1/11/14, 3:39 PM

/addons/base_vat/base_vat.py contains the code for VAT validation.

See http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/view/head:/base_vat/base_vat.py

On 7/6/14, 7:29 AM

Bulk \ Batch VIES VAT number validation service: http://vat-number-validation.eu/vies/

Very useful tool for people periodically checking VAT numbers.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 1/11/14, 2:04 PM
Seen: 3122 times
Last updated: 3/16/15, 8:10 AM