Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Sale Workflow
Folder size
0.03 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:48
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
OCA-git-bot, oca-ci, paloma.gonzalez
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
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.

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (0)

No models found for this module.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
83 days ago
Last activity
62 days ago
Repository
OCA/sale-workflow
Pull request
[19.0][MIG] sale_order_qty_change_no_recompute: Migration to 19.0 (#4376)