[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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user