Website Country Restriction
by PIT Solutions AG https://www.pitsolutions.com , GABIT Marco Gantenbein https://www.pitsolutions.com$ 24.60
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
Lines of code | 160 |
Technical Name |
pits_website_country_restriction |
License | OPL-1 |
Website | https://www.pitsolutions.com |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Invoicing (account) • Discuss (mail) |
Lines of code | 160 |
Technical Name |
pits_website_country_restriction |
License | OPL-1 |
Website | https://www.pitsolutions.com |
Website Country Restriction
The Website Country Restriction plugin allows you to control which countries are available for selection in all address forms on your Odoo website, including billing addresses, shipping addresses, and any other address inputs used during the checkout or account creation process.
Easy Installation
Install and configure the module seamlessly with zero coding required. Compatible with standard Odoo setup and deployment processes.
Fully Integrated & Secure
Works natively with existing Odoo features. Built with Odoo security best practices to ensure safe and stable operations.
Ongoing Support
Get timely help from our expert team. We provide support for installation, usage, and troubleshooting.
Who is this Plugin for?
- Website Managers looking to control all address entry points on the website - from checkout to customer account creation - to prevent invalid country selections.
- E-commerce Administrators who manage shipping and billing logistics and need to enforce accurate geographic inputs across all address forms.
- Store Owners operating in specific regions and aiming to eliminate unsupported delivery requests, billing issues, or regulatory mismatches.
- Businesses with country-specific policies that require enforcing address restrictions throughout the entire website flow.
- Companies expanding globally who want to roll out country-specific settings gradually and strategically.
- Any Odoo-powered online store that needs tighter control over customer address input and shipping zones.
For assistance with installation, please reach out to us at support@webshopextension.com. We're here to help!
Explore our full range of Odoo extensions at: https://www.webshopextension.com/en/#category=odoo.
Restrict Available Countries
Limit the countries users can select in all address forms on your website - including billing, shipping, and customer profile addresses - ensuring that only supported regions are allowed throughout the user journey.
Set a Default Country
Automatically preselect a default country in checkout forms to simplify the user experience and reduce address entry errors.
Future-Order Focused
Restrictions and default country settings apply only to new addresses created after configuration, ensuring existing records remain unchanged.
Error Validation on Unsupported Countries
If a user attempts to proceed with a country that is not allowed, the system blocks submission and displays an error to prevent unsupported orders.
- The extension is fully compatible with Odoo 17.0 Community and Enterprise Editions and can be installed easily.
- The module requires the Odoo website_sale module to be installed.
Version 1.0.0 (August 2025)
- Initial release.
FAQ
What does the Website Country Restriction module do?
This module allows you control which countries are available for selection in all website address forms, including billing, shipping, and user profile addresses.
Where can I configure the allowed and default countries?
Go to Settings > Website > Shop - Checkout Process > Country Restrictions. You'll find dropdowns to select both Available Countries and Default Country.
Will this affect existing customer addresses?
No. The restrictions only apply to addresses created after the module has been configured. Existing customer data will remain unchanged.
What happens if a user selects a restricted country?
The system will block the order and display an error message, preventing checkout with unsupported shipping or billing countries.
Can I set different country restrictions for different websites?
Yes, if your Odoo instance uses multiple websites, the module supports configuring country restrictions separately for each one.
Which Odoo version is the module compatible with?
- The module is compatible with both Community and Enterprise Editions of Odoo v17.0.
Where can I get support for the module?
For support, visit webshopextension.com or email: support@webshopextension.com
Suggested Modules

PITS Odoo Services
PIT Solutions offers comprehensive Odoo services including implementation, customization, integration, and support. We help businesses of all sizes streamline operations with Odoo's powerful, user-friendly ERP platform.
For assistance with installation, please reach out to us at support@webshopextension.com. We're here to help!
Odoo Implementation
Odoo Community Apps
Odoo Support & Maintenance
Odoo Customization
Odoo Integration Services
Odoo Developer Outsourcing
Odoo Database Migration
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