Website Sale Checkout Country VAT
This module extends the functionality of website_sale module to autocomplete VAT country code in checkout process.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0During website checkout, the VAT field is replaced by a country-code dropdown combined with the VAT number, and the country code is automatically filled in when the customer picks their address country.
This module changes the B2B checkout address form on the website shop. Instead of a plain VAT input, customers now see a country-code dropdown next to the VAT number field, so they can pick the country prefix of their tax number.
- The original VAT input is hidden and replaced by a country dropdown that stores the selected country code together with the VAT number.
- When the customer changes the address country in the checkout form, the matching country code is automatically selected in the VAT dropdown, so the two stay consistent.
- If the customer already has a VAT number on file and is not allowed to edit it, the VAT country dropdown is shown as read-only.
- The module works together with the country dropdown snippet and the VAT validation features already present in Odoo.
It affects the website checkout address screen (the B2B address template) and the front-end behaviour of the address form. No new menus, reports or scheduled actions are added.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 18.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-03Confirmation status: 5 confirmed, 4 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/e-commerce.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0The default country that will appear is the one of the current user, or the one of the Public User assigned to the website, or the one of the company that owns the website. Change it in the corresponding place to get a sane default.
Usage
Source · Odoo 18.0When a customer makes a purchase and do the checkout process, the VAT country code can be selected separated from the code itself. This is useful in 2 ways:
- User is implicitly forced to input (select) a country with its code.
- Error in the VAT now only can be raised by an incorrect vat, not the absence of the country code, which usually confuses users.
If you change the country for the address and the VAT is empty, the VAT country changes automatically too.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.