[ADD] sale_update: update global discount when order lines change#1298
Draft
patsh-odoo wants to merge 1 commit into
Draft
[ADD] sale_update: update global discount when order lines change#1298patsh-odoo wants to merge 1 commit into
patsh-odoo wants to merge 1 commit into
Conversation
01ff7bb to
a94c94c
Compare
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
a94c94c to
c14664a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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