Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Inventory Management (stock)
• Sales (sale) • Discuss (mail) • Invoicing (account) |
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 or Forecasted.

Overview
This module prevents users from confirming sales orders, when a product in the lines does not have quantity stock or forecasted available. The module imposes restrictions for Storable type products only. You can choose between restrict the quantity stock or forecasted, or any combination thereof. The restriction message shows all products in the sale order that do not have the quantity available in stock or forecasted. 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
Benefits
Prevent Overselling
Avoid confirming sales orders for products with insufficient stock or forecasted quantities.
Flexible Inventory Control
Choose to restrict sales based on stock or forecasted 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" and "Restriction Qty Forecasted" to prevents users from confirming sales orders based on qty Stock and Forecasted.

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

As you can see the 1st product has quantity = 500 and ordered 200, but Forecasted quantity = 140.
The 2nd product has quantity = 8, but ordered 10.

Restriction Qty Stock Only
As you can see in this example, the restriction check for quantity available in stock, not for Forecasted 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 or forecasted.


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