Skip to content

Conversation

@hapat-odoo
Copy link

  • Updated sale order methods to recalculate discount on all line updates.
  • Removed discount line when order becomes empty.
  • Enforced single global discount line handling.

…scount

- Updated sale order methods to recalculate discount on all line updates.
- Removed discount line when order becomes empty.
- Enforced single global discount line handling.
@robodoo
Copy link

robodoo commented Dec 3, 2025

Pull request status dashboard

@hapat-odoo hapat-odoo marked this pull request as draft December 3, 2025 06:36
Copy link

@bit-odoo bit-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
can you please update your commit message tiltle and add task id in end of commit message.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unneccary changes.

subtotal += line.price_subtotal

for discount_line in discount_lines:
match = re.search(r"(\d+(?:\.\d+)?)%", discount_line.name)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required?

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.

3 participants