$ 30.24
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Sales (sale_management)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
Lines of code | 50 |
Technical Name |
sales_product_restrictions_by_country |
License | See License tab |
Website | https://www.odonity.com |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Sales (sale_management)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
Lines of code | 50 |
Technical Name |
sales_product_restrictions_by_country |
License | See License tab |
Website | https://www.odonity.com |
Product Restrictions By Country in Sales and eCommerce
Restrict Product Sales Based on Customer's Country in Sales and eCommerce Applications
Automatically block restricted products based on the customer's country—whether they’re placing an order via the Sales app or eCommerce website. Prevent unauthorized sales, ensure compliance, and streamline product governance.
Key Features
- Restrict Product Sales by Country in both Sales and eCommerce
- Assign Multiple Restricted Countries per product
- Prevent Add to Cart in Odoo Website Store
- Block Products in Quotations based on customer country
- Enforced with Frontend & Backend Validations
- Seamless Sales and Website Integration
Preview Screens
Product Form with Restricted Country Selection

Restricted Product Blocked During Sales Order

Restricted Product Blocked on Website Add to Cart

Installation & Usage
- Install like any standard Odoo module
- Go to Sales > Products
- Select a product and add one or more restricted countries
- Create a quotation or add to cart on website as a customer from a restricted country
- The product will be blocked from being added
Compatibility
- Compatible with Odoo Sales and Website/eCommerce modules
- No extra configuration needed
- Works with native Odoo workflows
Support & Customization
Need help or want to customize this module?
- Email: odonity.services@gmail.com
- Website: www.odonity.com
Sales Product Restrictions By Country | Restrict Products in Sales & eCommerce | Block Sales by Country
Sales Product Restrictions By Country helps you restrict the sale of products based on the customer's country in both the Sales and eCommerce applications of Odoo.
It’s ideal for businesses that need to comply with country-specific regulations or internal product control policies by preventing restricted items from being sold or added to cart.
Key Features
- Country-Based Product Restrictions: - Tag products with one or more countries where their sale is not allowed.
- Sales Order Validation: - Automatically block products from being added to sales orders for customers in restricted countries.
- eCommerce Website Restriction: - Prevent customers from restricted countries from adding forbidden products to their online cart.
- Integrated Odoo UI: - Seamlessly works with both native Sales and Website modules.
- Frontend & Backend Enforcement: - Uses onchange warnings and database-level constraints for total reliability.
Installation
- Copy this module to your Odoo custom addons directory.
- Restart your Odoo server.
- Activate Developer Mode in General Settings.
- Go to Apps, click Update Apps List, and install Sales Product Restrictions By Country.
Usage
- Navigate to Sales > Products or Website > Products.
- Open a product form and select countries under the "Restricted Countries" field.
- Create a sales order or eCommerce checkout for a customer from a restricted country.
- The product will be automatically blocked and show an error message.
Support & Customization
Need customizations or feature enhancements?
- Website: https://www.odonity.com
- Email: odonity.services@gmail.com
Changelog
1.0.0 (2025-05-25)
- Initial release of Sales Product Restrictions By Country for Odoo.
- Supports country-based product restriction in Sales and Website modules.
- Prevents restricted products in both backend quotations and frontend shopping cart.
Odoo Proprietary License v1.1 - Strict Commercial Use © 2025-Present Odonity. All Rights Reserved. Module Name: Product Restrictions By Country in Sales and eCommerce (By Odonity) License Owner: Odonity (https://www.odonity.com) Support Email: odonity.services@gmail.com This software is protected by copyright laws and international treaties. It is licensed, not sold. You are granted a **non-transferable, non-sublicensable, and non-exclusive license** to use this software ONLY under the terms below: -------------------------------------------- STRICT TERMS OF USE -------------------------------------------- PERMITTED: - Use the module in one Odoo production instance only (with staging/test allowed only for that instance). - Use for internal company operations. - Request support, upgrades, or customization services from Odonity. PROHIBITED WITHOUT WRITTEN PERMISSION FROM ODONITY: - Modifying, altering, or extending the source code in any way. - Reselling, sublicensing, or redistributing any part of the module. - Sharing the code with third parties, including freelancers or other vendors. - Uploading this module to public or private repositories, websites, or forums. - Creating derivative works or using snippets in other modules. - Using the module as a base to develop similar competing products. WARNING: This software contains **branding, code-level markers, and security tracking** for anti-piracy purposes. Tampering with these or violating this license may result in: - Permanent termination of your usage rights - Legal action under local and international intellectual property laws - Immediate take-down notices for marketplaces and hosting providers -------------------------------------------- LICENSE VERIFICATION & SUPPORT -------------------------------------------- License Keys / Validation (optional): Odonity reserves the right to implement license key checks in future versions. Support is only available to verified license holders. Invoice or proof of purchase must be retained for all license claims. For official support, licensing clarifications, or enterprise usage, please contact: odonity.services@gmail.com | https://www.odonity.com -------------------------------------------- BY INSTALLING THIS MODULE, YOU AGREE TO BE BOUND BY ALL TERMS ABOVE. Unauthorized use, reproduction, or redistribution is strictly prohibited.
Please log in to comment on this module