OCA/sale-workflow · 18.0
Sale Order Qty change no recompute
sale_order_qty_change_no_recompute
Sale Order Qty change no recompute
A lot of businesses don't set different prices according to the quantity of the product to sell, and they find it very annoying to set a manual discount after the negotiation with the customer, only to see it changed when they vary the demanded quantity.
Since Odoo 18.0, the unit price is natively protected from recomputation
when modified manually (via the technical_price_unit field). However,
the discount and pricelist_item_id fields are still recomputed when
the quantity or unit of measure changes.
This module prevents this by avoiding the recomputation of the discount and pricelist item fields if only the quantity or unit of measure has been changed in the sales order line.
Table of contents
Usage
To use this module, you need to:
- Create a new sale order.
- Add a product line and set a custom discount.
- Save the sale order.
- Edit the sale order and change the quantity (the custom discount will not be reset).
Known issues / Roadmap
- Having this module installed may alter test results of other modules expecting to have the price fields recomputed when changing quantities.
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
- Tecnativa
Contributors
- Tecnativa:
- Víctor Martínez
- Pedro M. Baeza
- César A. Sánchez
- APSL-Nagarro:
- Paloma González-Ripoll
Maintainers
This module is maintained by the OCA.
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:
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>.






