odoo/odoo#208605

Created by fw-bot
Merged at 039044501909ebdcf9b926861ac7300b866f67f6

Statuses:

label
odoo-dev:saas-18.1-18.0-pricelist-combo-price-manv-427961-fw
head
12e84e52639bdbf826b42ebca8ae823bb710a17f
merged
2 months ago by Manu Vaillant (manv)
odoo/odoo
18.0 #204981
saas-18.1 #208605
saas-18.2 #209134
saas-18.3 #209156
saas-18.4
master #210428

[FW][FIX] point_of_sale: pricelist combo price computation

  • Fix issue where combo price were not recomputed when changing the pricelist of the order.
  • The issue was due to the fact that in the pos_order.set_pricelist() method we were only recopute the combo line that have a price_type === "original", and that the combo line price_type was undefined.
    Now when a adding a combo product to the cart, all of its lines have a price_type set to automatic initially, and inside pos_order.set_pricelist() we now recompute the price of the combo line that have a price_type === "automatic".

Steps to reproduct:
- Create pricelists and add it to pos config
- Open PoS
- Add combo product to cart
- Change pricelist
- => Price is not recomputed based on the pricelist as it should

task-4707663


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

Forward-Port-Of: #204981