Discount by quantities of product category

Technical Name:
Julius Network Solutions
  • Odoo Version

Discount by quantities of product category

Alpha License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runbot

This module will add a button inside the sale order and will compute the discount not by line but by quantities of the same product category, in the same sale order. e.g.: You've defined 10% discount for Category A for 100 PCE min in the List price.

You try to sell 50 Pieces of Product A and 50 Pieces of Product B (defined on Category A). The OnChange in the line will compute the price of the product as usual. Then you click on the new button. The unit price will be updated as you've sold 50+50 = 100 pieces of the same category! => you will have 10% discount on both lines !

This module was originally developed in v7.0 by the company Julius :


This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. More details on development status

Table of contents

Known issues / Roadmap

That module work as it but should be benefit of refactoring to work with good performance in '_get_quantity_to_compute()' with a real multi implementation

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 smashing it by providing a detailed and welcomed feedback.

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



  • Julius Network Solutions



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.

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

You are welcome to contribute. To learn how please visit

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products