CVR control before VIES
Validates Danish VAT numbers against the CVR register first and only uses VIES for foreign EU VAT numbers.
What you get
- CVR-first routing - 8-digit / DK-prefixed VAT numbers on Danish (or country-less) partners are validated and enriched via the CVR module; other numbers go to VIES
- No pointless VIES calls - DK-format numbers are never sent to VIES (a domestic DK-to-DK lookup cannot validate) and partners in non-EU countries skip VIES entirely
- Combined buttons on the partner form - the separate CVR and VIES buttons are replaced by one 'update from CVR or VIES' refresh button and one 'check VAT on CVR or VIES' validation button
- Color-coded VAT field - the VAT field turns green/red/orange depending on the result of the last CVR or VIES check
- Format check while typing - changing the VAT number on a company contact triggers an immediate EU-format check with an on-screen warning if the format does not match the country
- Automatic VAT pickup - if a partner has no VAT number but its name is a valid EU VAT number, the number is moved into the VAT field before validation
Configuration and use
Install alongside the RLSD CVR and VIES modules (the module auto-installs when its dependencies are present). No settings are needed: validation runs automatically on partner create/write and through the buttons next to the VAT field on the contact form. Writes can be bypassed programmatically with the ignore_control_vat context key.
Technical note
Glue module - the actual register lookups are performed by the RLSD cvr module (Danish CVR register) and vies module (EU VIES service), which are required dependencies.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Invoicing (account) • Sales (sale_management) • Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 4740 |
| Technical Name |
cvr_before_vies |
| License | OPL-1 |
| Website | https://www.rlsd.dk/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module