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
    • Approvals
    • 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
    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. Inventory
  3. Discount Restriction v 18.0
  4. Sales Conditions FAQ

Discount Restriction

by Devlopers Pro https://www.developerspro.co.uk
Odoo
v 18.0 Third Party 3
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Invoicing (account)
• Purchase (purchase)
• Sales (sale_management)
• Discuss (mail)
Lines of code 160
Technical Name discount_restriction
LicenseLGPL-3
Websitehttps://www.developerspro.co.uk
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Invoicing (account)
• Purchase (purchase)
• Sales (sale_management)
• Discuss (mail)
Lines of code 160
Technical Name discount_restriction
LicenseLGPL-3
Websitehttps://www.developerspro.co.uk
Developers Pro Logo

Discount Restriction

Cap the maximum discount percent selected users can apply on selected products across Sales Orders, Purchase Orders and Invoices. Configured once at the company level — enforced automatically on every order line, every time.

Sales Orders Purchase Orders Customer & Vendor Invoices Per Company

Overview

What This Module Does

Stop margin leakage at the source. Pick the products you want to protect, the users who need a ceiling, and the maximum discount percent — the module then validates every Sales, Purchase and Invoice line and blocks any save that exceeds the limit with a clear error message. Zero training, zero workflow changes for your team.

🔒
Hard Discount Cap
Define one maximum discount percent per company — any line that exceeds it is rejected with a translatable error.
👥
Targeted Users
Restriction applies only to the users you list — managers and senior staff continue to operate without any limit.
📦
Selected Products
Pick the exact products to protect — everything outside the list keeps its existing discount behavior, untouched.

Coverage

Where The Restriction Applies

One configuration, three documents. The discount cap is enforced everywhere a price-line discount can be set in standard Odoo.

Sales Order Lines
Validated on every quotation and confirmed sales order line — the discount column never sneaks past the cap.
Purchase Order Lines
Buyers can negotiate — but never record a vendor discount above the policy threshold on a restricted product.
Customer Invoice Lines
Manual invoices and credit notes are checked the same way — cap is consistent with sales orders.
Vendor Bill Lines
Direct vendor bills also pass through the validator — no document type is left as a back door.
Per-Company Policy
Each company in a multi-company database keeps its own product list, user list and percentage cap.
Clear Error Message
User, product and current vs. allowed percent are all named in the error — no guessing what failed.

Details

Key Features

Everything you need to protect your margins, nothing your team has to learn.

Single Settings Page
All four configuration fields live under Inventory → Configuration → Settings — nothing is buried.
Master Switch
A single boolean turns the entire policy on or off — useful for promotions, sales events, or quick rollback.
Float Percent Field
Set the cap with decimal precision — e.g. 7.5%, 12.25% — not just whole numbers.
Many2many Lists
Restricted products and restricted users are picked through standard Odoo Many2many widgets — familiar UX, no surprises.
Validation On Write
The cap is enforced when the line is saved — so the violation cannot survive into a confirmed document.
No Workflow Changes
Pure validation layer — existing sales, purchase and invoicing flows continue exactly as they were.
Translatable Errors
All error messages are wrapped in _( ) — ready for any installed Odoo language pack.
Lightweight Dependency
Depends only on the standard stock, sale_management, purchase and account apps.
No Custom UI Bloat
Only one settings view is added — no extra menus, buttons or tabs cluttering up your operational screens.

Guide

How To Use

From install to enforcement in three quick steps.

1. Open Settings
Go to Inventory → Configuration → Settings and locate the Discount Restriction section.
2. Configure The Policy
Tick Enable, pick the restricted products, the restricted users, and set the maximum discount percent — then save.
3. You're Protected
From the very next document, any listed user trying to push a listed product past the cap is stopped with an explanatory error.

Why It Matters

Highlights

Protect margins without micro-managing
No more spot-checking sales orders or auditing invoices for over-discounted lines. The system enforces the policy automatically — managers approve only the genuine exceptions, not the rule.
Surgical, not blanket
Only the users you list, only the products you list. Senior reps still have full freedom. Non-strategic SKUs keep their normal discount behavior. The rule applies exactly where you want it — and nowhere else.
Consistent across Sales, Purchase and Accounting
One policy, three modules. The same cap that protects your sales margin also stops mistaken purchase discounts and inconsistent invoice/credit-note adjustments — one source of truth, everywhere.
Multi-company friendly
The configuration is stored per res.company, so each branch or legal entity in a multi-company database manages its own restricted products, users and percentage cap independently.

Settings

Configuration Fields

Four fields. That's the entire setup — added under Inventory → Configuration → Settings.

Enable Discount Restriction
Boolean master switch. When off, all validation is skipped — useful for sales events, clearance windows or quick rollback.
Restricted Products
Many2many on product.product. Only these products are checked — everything else keeps its existing discount behavior.
Maximum Allowed Discount
Float percent. The hard ceiling enforced on every restricted line. Decimals are supported (e.g. 7.5%).
Restricted Users
Many2many on res.users. Only these users are subject to the cap — everyone else operates without restriction.

Preview

Screenshots

Discount Restriction Settings — Inventory → Configuration → Settings
Discount Restriction Settings Page
Validation In Action — Restricted User Blocked At The Cap
Discount Restriction Validation Error

What We Do

Our Odoo Services

End-to-end Odoo expertise — from initial setup to long-term support. We help businesses get the most out of their Odoo investment.

Odoo Implementation
Full Odoo ERP setup from scratch — requirements analysis, configuration, data migration, user training, and go-live support.
Custom Development
Custom modules, reports, workflows, and business logic tailored to your unique processes and industry requirements.
Odoo Customization
Adapt existing Odoo modules to fit your workflows — custom fields, views, access rules, automated actions, and UI tweaks.
Third-Party Integration
Connect Odoo with payment gateways, shipping carriers, eCommerce platforms, CRMs, APIs, and other external systems.
Odoo Support
Ongoing maintenance, bug fixes, performance optimization, version upgrades, and dedicated technical support for your Odoo instance.
Training & Consulting
User training, admin workshops, best practice consulting, and strategic guidance to maximize your Odoo ROI.
Developers Pro
Developers Pro

We build smart Odoo solutions — custom modules, integrations, and workflow improvements tailored to your business needs.

Email Us Contact Us
© Developers Pro — Odoo Solutions & Custom Development

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
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