Skip to content
Snippets Groups Projects
Commit 1ea082b9 authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] pos_coupon: correctly filter out global discount


Current behavior:
When a global discount is applied, it is considered as a regular
orderline when computing the order discounts. Because of this if you
applied a coupon and a global discount, the pos would add a discount of
infinity value.

Steps to reproduce:
- Create a promotion with a discount of 10%
- Create a product with no taxes
- Enable the global discount feature, and make sure the Discount product
  has a tax set on it.
- Create a new order, add the product, apply the promotion, and apply
  the global discount.
- The order will have a discount of infinity value.

opw-3094784

closes odoo/odoo#108304

X-original-commit: ef6821d97566b72fd87a77ca4a10fd1fd73db2e1
Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
Signed-off-by: default avatarEngels Robin (roen) <roen@odoo.com>
parent 4f6bf04d
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment