[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) <vfe@odoo.com>
This commit is contained in:
Lois Rilo
2023-10-17 08:53:19 +00:00
parent d7da5b0be2
commit 85ac46e9f1
@@ -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")