Skip to content

[ADD] sale_update: update global discount when order lines change#1298

Draft
patsh-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-sale-discount-patsh
Draft

[ADD] sale_update: update global discount when order lines change#1298
patsh-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-sale-discount-patsh

Conversation

@patsh-odoo
Copy link
Copy Markdown

@patsh-odoo patsh-odoo commented May 27, 2026

This Pull Request introduces the sale_update module, a module designed to synchronize global discounts with sale order lines. Key features include dynamic recalculation of discount percentages whenever order lines are modified, and automated cleanup logic that removes discount lines entirely when no primary order lines remain.

project - [PSIM] INTERNSHIP ONBOARDING
task - [sale_management] : Discount value should get update when updating orderlines

@robodoo
Copy link
Copy Markdown

robodoo commented May 27, 2026

Pull request status dashboard

@patsh-odoo patsh-odoo force-pushed the 19.0-sale-discount-patsh branch 2 times, most recently from 01ff7bb to a94c94c Compare May 27, 2026 05:42
Added a module that fixes issue of updating global discount when order lines
changes, it enables updating discount lines whenever order lines are removed
or order lines are updated and removes discount lines when no order line is
left.

Earlier once global discount is applied it was not changed whenever user changes
order lines or even removes them.

project - [PSIM] INTERNSHIP ONBOARDING
task - [sale_management] : Discount value should get update when updating
orderlines
@patsh-odoo patsh-odoo force-pushed the 19.0-sale-discount-patsh branch from a94c94c to c14664a Compare May 31, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants