Prevent recompute if only quantity has changed in sale order line
Project description
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
Contributors
-
Víctor Martínez
Pedro M. Baeza
César A. Sánchez
-
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_sale_order_qty_change_no_recompute-18.0.1.0.0.2-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_sale_order_qty_change_no_recompute-18.0.1.0.0.2-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f79cc6df3225f6ece2c7b7f9c032b1397412b366c30f8aa677c5251d56872c73
|
|
| MD5 |
f5470dc1160219ac685c075d9a5c5155
|
|
| BLAKE2b-256 |
c3813f5f16e0f1a26346aad61e00408bcd417b2947dc245b2fc0086e848b79b3
|