odoo icon indicating copy to clipboard operation
odoo copied to clipboard

[FIX] point_of_sale,pos_loyalty: count combo as one product for discount

Open robinengels opened this issue 1 year ago • 1 comments

When computing the cheapest line of an order to apply a discount on it, combo line should be considered as one product as it is done in the sale app.

Steps to reproduce:

  • Setup a combo product
  • Setup a discount program that applies on the cheapest line
  • Open a PoS and add the combo product

Observation: The discount would be applied on the cheapest product of the combo instead of the whole combo

Why the fix:

When we look for the cheapest line and we encounter a combo product we sum all the lines of the combo to compute it's total price

opw-4033960

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

robinengels avatar Sep 17 '24 14:09 robinengels

Pull request status dashboard

robodoo avatar Sep 17 '24 14:09 robodoo