Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Inventory (stock)
• Sales (sale_management) • Discuss (mail) • Invoicing (account) |
Lines of code | 147 |
Technical Name |
sale_stock_restriction |
License | OPL-1 |
Versions | 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 |
Sale Stock Restriction
Restrict the sale of products that are out of Stock, Forecasted or Free.

Overview
This module prevents users from confirming sales orders, when a product in the lines does not have quantity stock, forecasted or free available. The module imposes restrictions for Storable type products only. You can choose between restrict the quantity stock, forecasted or free (Free To Use Quantity), or any combination thereof. The restriction message shows all products in the sale order that do not have the quantity available in stock, forecasted or free. You can allow some users who can force sale order confirmation by adding them to this group "Forcing Sale Quantity".
Key Features
- Restriction Quantity Stock
- Restriction Quantity Forecasted
- Restriction Qty Free (Free To Use Quantity)
Benefits
Prevent Overselling
Avoid confirming sales orders for products with insufficient stock, forecasted, or free quantities.
Flexible Inventory Control
Choose to restrict sales based on stock, forecasted, or free quantities, or any combination thereof.
Enhanced User Management
Allow specific users to bypass restrictions when necessary, maintaining control while providing flexibility.
Configuration
Under Sales > Configuration > Settings enable "Restriction Qty Stock", "Restriction Qty Forecasted" and "Restriction Qty Free" to prevents users from confirming sales orders based on qty Stock, Forecasted and Free.

Confirm Sale Order
When the user confirms the sale order, a pop-up window will appear restricting it.

As you can see [DESK0006] Customizable Desk (Custom, Black) has quantity = 70, but ordered 75.
[DESK0005] Customizable Desk (Custom, White) has quantity = 65 and ordered 40, but Free quantity to use = 35.
[E-COM07] Large Cabinet has quantity = 500 and ordered 300, but Forecasted quantity = 270.

Restriction Qty Stock Only
As you can see in this example, the restriction check for quantity available in stock, not for Forecasted or Free quantity.


Forcing Sale Quantity
As you can see, users in the "Force Sale Quantity" group can force a sale even if the quantity is not in stock/forecasted or free.


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
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
Dear,
Is Odoo Apps Dependencies as in Description : • Inventory (stock) - • Sales (sale_management) - • Discuss (mail) - • Invoicing (account)... if this OK, i will buy this addon.
just confirm no need web app or eCommerce app.
Thanks
Re:
Hello Dear,
There is no need for web or E-Commerce app, just the dependencies are in the description:
Sincerely.