Skip to main content
Odoo Community Association

Sale order restricted quantity: min, max, multiple-of

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

This module allows to set mininal, maximal, and multiple-of quantity constraints on product categories and products, and to check and optionally enforce these constraints on sale orders (either as strict blocking or soft warnings).

Table of contents

Usage

To set quantity constraints on a product: navigate to Sales > Products > Products, open the product, and on the Sales tab in the Qty Constraints section set corresponding values in the Min Qty, Max Qty, or Multiple-Of Qty fields.

Constraint Types:

  • Min Qty: Minimum quantity required for a sale.

  • Max Qty: Maximum quantity allowed for a sale.

  • Multiple-Of Qty: Quantity must be a multiple of this value.

Enforcement Levels (Restrict): For each constraint, you can choose the enforcement level:

  • Blocking: Strictly enforces the rule. The user cannot confirm the line with an invalid quantity.

  • Warning: Displays a warning (yellow/orange indication) but allows the user to proceed.

    • Use Case: Use Warning when you want to allow flexibility, such as selling samples (below min qty) or clearing out leftover stock (remainder not matching multiple-of qty).

Auto-Suggest: When you select a product in a Sales Order line, if a Minimum Quantity is strictly enforced (Blocking) and the current quantity is not set (or is 0/1), the system will automatically populate the quantity with the Minimum Quantity.

To set quantity constraints on a product variant: navigate to Sales > Products > Product Variants, open the product variant, and on the Sales tab in the Qty Constraints section set corresponding values.

To set quantity constraints on a product category: navigate to Sales > Configuration > Product Categories, open the product category, and in the Sales Qty Constraints section set corresponding values.

The settings are inherited from the product category to the product, and from the product to the product variant. To override the inherited settings, check the checkbox next to the corresponding value and set the value in the product or product variant.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Akretion

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

ashishhirapara

This module is part of the OCA/sale-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-sale-restricted-qty 18.0.2.0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-sale-restricted-qty 18.0.2.0.1.2
File Interpreter ABI Platform Actions
odoo_addon_sale_restricted_qty-18.0.2.0.1.2-py3-none-any.whl Python 3 none any Details for odoo_addon_sale_restricted_qty-18.0.2.0.1.2-py3-none-any.whl

Release files / odoo_addon_sale_restricted_qty-18.0.2.0.1.2-py3-none-any.whl

Download URL odoo_addon_sale_restricted_qty-18.0.2.0.1.2-py3-none-any.whl
Size 68.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe8e06580c71f70340ae1ccbfc7a28700bba348998790f5328ef883cdd57f4a3
BLAKE2b-256 checksum
How to use checksums
1ef1ecfa3123c4c63e1c875adda3cdf283a7ede98525f72bfa4383d83158278b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-sale-restricted-qty 18.0.2.0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page