Skip to content
Snippets Groups Projects
Commit d9bbe861 authored by rhe-odoo's avatar rhe-odoo
Browse files

[FIX] point_of_sale: Fix refund lst price change


When we were doing a price modification on a product and this orderline was refund, the displayed price on the product screen was changed to the new value.

Example:
  - Default price: 33
  - Paying with a price set to: 2
  The order is refund:
  - Product price is set to 2
  It should only be 2 on the order refunded.

The fix doesn't change the price of the product after a refund anymore.

closes odoo/odoo#86627

X-original-commit: 62512893
Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
parent 0180bbca
Branches
Tags
No related merge requests found
......@@ -224,7 +224,6 @@ odoo.define('point_of_sale.TicketScreen', function (require) {
await destinationOrder.add_product(this.env.pos.db.get_product_by_id(orderline.productId), {
quantity: -qty,
price: orderline.price,
lst_price: orderline.price,
extras: { price_manually_set: true },
merge: false,
refunded_orderline_id: orderline.id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment