Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Sales
  3. Order Min/Max Rules - Minimum Order Amount, Quantity Limits & Pack Size Steps v 19.0
  4. Sales Conditions FAQ

Order Min/Max Rules - Minimum Order Amount, Quantity Limits & Pack Size Steps

by Modvanta https://modvantaapps.tech/odoo-apps/order-min-max-rules/
Odoo

$ 4.99

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
  • License
Order Min Max Rules for Odoo 19 - minimum order amount, maximum order quantity and sell in packs
Odoo 19Minimum order amountMaximum order amountMin / max quantitySell in packs of 6Quantity step37 automated tests

Minimum order amounts, maximum quantities and pack sizes - in the shop and on every sales order

Set a minimum and maximum quantity and a pack size per product, and a minimum or maximum order amount per customer or for everyone. The shop rounds quantities to whole packs and tells the shopper what is missing; sales orders that break a rule cannot be confirmed.

Buy Now - $5Ask a Question

Written and supported by Modvanta - modvantaapps@gmail.com

What it does

Wholesale and B2B shops rarely sell single units or tiny orders, but standard Odoo has no way to say sold in packs of 6, at least 500 per order, or no more than 2,000 for this customer.

This module adds those rules. On the product: minimum and maximum sale quantity, a pack size (or the product's packaging) and whether a wrong quantity is rounded up to the next pack or rejected. On the customer: minimum and maximum order amount. And general rules for all customers or one customer.

In the shop the product page says Sold in packs of 6 Units, the cart rounds 7 up to 12, and the cart total says Add 374.00 more to reach the minimum order of 500.00. In the backend, confirming an order that breaks a rule is refused with the reason.

Who it is for

Wholesalers and distributors

Sell in cases and cartons only, with a sensible minimum order.

B2B shops

Per-customer minimum and maximum order amounts, for credit or logistics reasons.

Any shop with small-order costs

A minimum order amount shown clearly in the cart.

Key features

All screenshots were taken on Odoo 19 with this module installed on a clean demo database (company Northwind Trading Co, default website theme). The Drawer is sold in packs of 6, minimum 6, maximum 60; a rule asks for a minimum order of 500; Azure Interior has a maximum order amount of 2,000.

Feature 1

Quantity rules on the product

Below the sales price: Min sale qty, Max sale qty, Use packaging as step, Sold in packs of, and Step behaviour (Round up to the next pack, or Reject with a message).

Quantity rules on the product

Feature 2

The product page tells the shopper

The page shows Sold in packs of 6 Units and the quantity starts at 6.

The product page tells the shopper

Feature 3

The cart keeps whole packs

Asking for 7 drawers puts 12 in the cart - the next whole pack - with the pack note under the line. The check also covers quantity changes in the cart and calls that skip the page.

The cart keeps whole packs

Feature 4

Minimum order amount in the cart

Under the cart total: Add 374.00 more to reach the minimum order of 500.00.

Minimum order amount in the cart

Feature 5

General rules

Sales > Configuration > Order Min/Max Rules: minimum and maximum order amounts for all customers or for one customer, with sequence and an optional note.

General rules

Feature 6

Limits per customer

The customer's Sales & Purchase tab has Min order amount and Max order amount; they take priority over general rules.

Limits per customer

Feature 7

Orders that break a rule cannot be confirmed

Confirming a 2,025.00 quotation for a customer with a 2,000.00 maximum: Your order of 2,025.00 is over the maximum of 2,000.00.

Orders that break a rule cannot be confirmed

How it works, step by step

1

Set product rules

On each product: min and max sale quantity, pack size or packaging, and the step behaviour.

2

Set amount rules

Sales > Configuration > Order Min/Max Rules, and/or Min and Max order amount on a customer.

3

Shoppers order

The shop keeps quantities to whole packs and shows what is missing for the minimum order.

4

Staff confirm

A sales order that breaks a rule is refused at confirmation with the reason.

Settings

No global settings: the rules live on products, customers and the rules list.

Min sale qty / Max sale qtyPer product; 0 means no limit.
Sold in packs ofQuantities must be a whole multiple; 0 disables. Or tick Use packaging as step.
Step behaviourRound up to the next pack (default) or Reject with a message.
Min / Max order amountOn the customer's Sales & Purchase tab.
Order Min/Max RulesGeneral rules for all customers or one customer, with sequence, company and Apply on confirm.

Frequently asked questions

Which wins, the customer's limit or a general rule?

The amounts set on the customer come first; general rules fill in what the customer does not set.

Can a shopper bypass the pack size?

No. Cart updates go through the same check, so a quantity that is not a whole pack is rounded up (or rejected) whatever page sent it.

Does it apply to backend sales orders?

Yes, an order that breaks a rule cannot be confirmed.

Can I use the product's packaging as the pack size?

Yes, tick Use packaging as step.

Compatibility

Odoo 19

Community and Enterprise

Depends on

Sales, eCommerce

Tested

37 automated tests

Sell in the quantities and order sizes that work for you

Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.

Buy Now - $5Hire Us for Odoo Work

SUPPORT

modvantaapps@gmail.com

AUTHOR

Modvanta

INCLUDED

Lifetime module updates for Odoo 19

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Sales (sale_management)
• eCommerce (website_sale)
• Discuss (mail)
• Invoicing (account)
• Website (website)
Lines of code 470
Technical Name mdv_order_min_max_rules
LicenseOPL-1
Websitehttps://modvantaapps.tech/odoo-apps/order-min-max-rules/
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with