[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: 6251289360bd0188f63ac0b0537cefae5ac29de3 Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user