Website Sale Cost Price
by Terrabit https://www.terrabit.ro , Voicu Stefan https://www.terrabit.ro
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Inventory (stock) • Invoicing (account) • Discuss (mail) • Website (website) |
| Lines of code | 119 |
| Technical Name |
deltatech_website_sale_cost_price |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Inventory (stock) • Invoicing (account) • Discuss (mail) • Website (website) |
| Lines of code | 119 |
| Technical Name |
deltatech_website_sale_cost_price |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Website Sale Cost Price

Website Sale Cost Price
This module extends the standard Odoo “Prevent Sale of Zero Priced Product” functionality to also prevent sales when the product price is lower than its cost price (standard price).
Key Features:
- Dynamic Sale Prevention: Automatically blocks adding a product to the cart if the sale price is below the cost price.
- Configurable Margin: Set a minimum required margin percentage in the website settings (e.g., if set to 10%, sale price must be at least 110% of the cost price).
- Tax-Aware Comparisons: Configure whether the cost price includes tax or not, ensuring accurate comparison against the website sale price.
- Currency Conversion: Automatically handles currency differences between the product’s cost currency and the website’s pricelist currency.
Configuration:
- Go to Website > Configuration > Settings.
- Locate the Shop - Checkout Process section.
- Enable Prevent Sale of Zero Priced Product.
- Configure the new fields:
- Cost Price Includes Tax: Specify if your product cost prices already include tax.
- Cost Price Margin %: Set the minimum margin required for a sale to be allowed.
Usage:
When a user browses the website:
- If a product variant’s price is lower than the calculated cost threshold, the “Add to Cart” button is replaced by the “Contact Us” button (or the action configured for zero-priced products).
- The same restriction applies to the “Quick Add” functionality.
Table of contents
Bug Tracker
Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Terrabit
- Voicu Stefan
Maintainers
Current maintainer:

This module is part of the dhongu/deltatech project on GitHub.
You are welcome to contribute.
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