Skip to content

[ADD] sale_discount_recompute: recompute global discount on order lines changes #922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

jcha-odoo
Copy link

@jcha-odoo jcha-odoo commented Aug 18, 2025

Ensure that the global discount line in Sale Orders is kept in sync with the current order lines.

  • Recalculate discount when order lines are added, updated, or removed.
  • Remove discount line when no order line is present.
  • Handle for single discount and multi-discount lines as well.

task-5008128

@robodoo
Copy link

robodoo commented Aug 18, 2025

Pull request status dashboard

@jcha-odoo jcha-odoo force-pushed the 18.0-sale_discount_recompute-jcha branch from 718c0b0 to b165cee Compare August 18, 2025 09:32
@jcha-odoo jcha-odoo changed the title [ADD] sale_discount_recompute: recompute global discount on order lin… [ADD] sale_discount_recompute: recompute global discount on order lines Aug 18, 2025
@jcha-odoo jcha-odoo changed the title [ADD] sale_discount_recompute: recompute global discount on order lines [ADD] sale_discount_recompute: recompute global discount on order lines changes Aug 18, 2025
@jcha-odoo jcha-odoo force-pushed the 18.0-sale_discount_recompute-jcha branch from 12edb75 to e5eca36 Compare August 18, 2025 10:37
…e changes

Ensure that the global discount line in Sale Orders is kept in sync
with the current order lines.

- Recalculate discount when order lines are added, updated, or removed.
- Remove discount line when no order line is present.
- Handle for single discount and multi-discount lines as well.

task-5008128
@jcha-odoo jcha-odoo force-pushed the 18.0-sale_discount_recompute-jcha branch from e5eca36 to f2fe1ef Compare August 21, 2025 13:05
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