From 70d11f4ca2f0cb9703432f5e1e97437d72b1d07e Mon Sep 17 00:00:00 2001 From: pedrambiria Date: Wed, 15 Mar 2023 15:59:23 +0000 Subject: [PATCH] [FIX] point_of_sale: Display the correct discount name in paid orders Before this commit, the discount name in the paid orders was different from the one displayed when creating the order. This was due to the fact that the `full_product_name` field was not being sent to the point of sale, so the discount product name was being used instead. This commit fixes the issue by ensuring that the `full_product_name` field is sent to the point of sale, which allows for the correct discount name to be displayed in the order menu. opw-3213225 closes odoo/odoo#116473 X-original-commit: 8df45f2b50f01a9312a2513f39b467583d735a1d Signed-off-by: Trinh Jacky (trj) Signed-off-by: Pedram Bi Ria (pebr) --- addons/point_of_sale/models/pos_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py index 40b6cbbfa34..50293e02200 100644 --- a/addons/point_of_sale/models/pos_order.py +++ b/addons/point_of_sale/models/pos_order.py @@ -1427,6 +1427,7 @@ class PosOrderLine(models.Model): 'customer_note': orderline.customer_note, 'refunded_qty': orderline.refunded_qty, 'price_extra': orderline.price_extra, + 'full_product_name': orderline.full_product_name, } def export_for_ui(self):