$ 10.17
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Purchase (purchase)
• Discuss (mail) • Invoicing (account) |
Lines of code | 106 |
Technical Name |
purchase_quantity_restriction |
License | LGPL-3 |
Website | https://www.netilligence.io |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Purchase (purchase)
• Discuss (mail) • Invoicing (account) |
Lines of code | 106 |
Technical Name |
purchase_quantity_restriction |
License | LGPL-3 |
Website | https://www.netilligence.io |
Purchase Quantity Restriction
This module enhances the Odoo Purchase module by introducing a maximum quantity restriction feature at the product level. When a user attempts to create a Purchase Order exceeding the allowed inventory limit, the system automatically validates the request and displays a warning with full details.
GET PERSONALIZED DEMO

Product Configuration

This image shows the product form view in Odoo where the admin can define a Quantity Restriction value for a product (e.g., 60 units for "CoCo-Cola").
Description:
The product configuration screen displays the field Quantity Restriction, which is used to set the maximum inventory level allowed. If purchases cause inventory to exceed this number, the system restricts the order.
Validation Error on Purchase Order(RFQ)

This image displays the validation error popup shown during Purchase Order confirmation when the ordered quantity exceeds the restriction.
Description:
The system checks:
- Current stock level (50.0 units)
- Ordered quantity (50.0 units)
- Total after purchase (100.0 units)
- Allowed maximum ”Restricted quantity” (60.0 units).
It then blocks the purchase order and shows a user-friendly popup with a clear message: “You are not allowed to order with 50.0 units of 'CoCo-Cola'. Current Available: 50.0, Total after Purchase: 100.0, Maximum Allowed (Restricted Quantity): 60.0.”

Set a maximum allowed quantity per product.

Automatic validation error if purchase quantity exceeds the limit.

Warning message includes:
- Current quantity available in inventory quantity.
- Quantity being ordered.
- Total quantity after order.
- The maximum quantity allowed.

Ensures stock level control and prevents over-ordering.

It effect the product variance.
FAQ
Yes. The restriction works at the variant level. Each variant can have its own Quantity Restriction. For example, "T-Shirt (Red, L)" can have a limit of 100 units, while "T-Shirt (Blue, M)" may be restricted to 50 units.
The system automatically blocks the order and displays a validation popup. It informs the user of:
- Current inventory
- Ordered quantity
- Total after order
- Maximum allowed quantity
Yes. This module is fully compatible with the default Purchase and Inventory modules in Odoo 16 and above. No changes to your standard process are required.
This module currently applies only to Purchase Orders. It does not affect Sales Orders, but a similar logic can be extended if needed.
Release 18.0
13th June, 2025Our Services
All our services are quality-oriented. To give our customers the best delivery, we operate with six main services.
Netilligence is a brand that provides exquisite services to boost business growth. Stay confident when working
with us because that will give you a chance to stay ahead of your competition

Odoo Customization
Perfect workflows for maximum efficiency and boost productivity with custom-made Odoo features.

Odoo Implementation
Our experts handle the entire Odoo setup process, from configuration to data import and training.

Odoo Migration
We migrate your business data for a smooth and efficient transition to Odoo.

Odoo Training & Support
Leverage Odoo with expert guidance and best practices for your business journey.

Odoo Consultancy
We develop custom Odoo modules to meet unique business needs and integrate with existing systems.

Odoo Mobile Apps
Develop mobile apps for on-the-go access to critical data and functionalities.
.png?f50f57a)
Get Support, For Free!
60 Days Free Support
In case any bugs or issue (Except data recovery)
At Netilligence we offer end to end solution for Odoo services. Which includes analysis & consultation on the workflows and integration part

Have Any Question ?
+971 50 952 4733

Write Email
sales@netilligence.io
.png?f50f57a)
Please log in to comment on this module