Odoo Help


This community 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.


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

Alberto Franceschi
on 1/11/14, 2:04 PM 2,139 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?


Ray Carnes

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

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. 

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.

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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