odoo/odoo#208605
Created by fw-bot
Merged
at 039044501909ebdcf9b926861ac7300b866f67f6
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- 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 aprice_type === "original"
, and that the combo lineprice_type
was undefined.
Now when a adding a combo product to the cart, all of its lines have aprice_type
set toautomatic
initially, and insidepos_order.set_pricelist()
we now recompute the price of the combo line that have aprice_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
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #204981