From 85ac46e9f1a031043c7de8bb4f1fd5720249e49c Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 16 Oct 2023 12:01:34 +0200 Subject: [PATCH] [FIX] product: display variant internal reference on pricelist items This will make it consistent with items applying to templates and with form view where internal reference is shown. It doesn't look like there is any reason to not displaying it in variants. closes odoo/odoo#138866 X-original-commit: 9f53b8d2185a1abf9635c9d9f6c5378943da4d0a Signed-off-by: Victor Feyens (vfe) --- addons/product/models/product_pricelist_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product_pricelist_item.py b/addons/product/models/product_pricelist_item.py index daf38638587..30f665a8f34 100644 --- a/addons/product/models/product_pricelist_item.py +++ b/addons/product/models/product_pricelist_item.py @@ -147,7 +147,7 @@ class PricelistItem(models.Model): elif item.product_tmpl_id and item.applied_on == '1_product': item.name = _("Product: %s") % (item.product_tmpl_id.display_name) elif item.product_id and item.applied_on == '0_product_variant': - item.name = _("Variant: %s") % (item.product_id.with_context(display_default_code=False).display_name) + item.name = _("Variant: %s") % (item.product_id.display_name) else: item.name = _("All Products")