From 64148c2fae9f742bdc37cf7a73d641871e6b7be3 Mon Sep 17 00:00:00 2001 From: "Dimitrios T. Tanis" Date: Sun, 15 Dec 2024 09:34:47 +0200 Subject: [PATCH] [16.0][FIX] product_variant_configurator: Get all name_get values from product Fixes name_get to append ALL name_get values correctly (if more than 1). This happens when e.g. there are more than 1 products in product.supplierinfo and product is searched in purchase.order --- product_variant_configurator/models/product_product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_variant_configurator/models/product_product.py b/product_variant_configurator/models/product_product.py index 6eef4058d..8a5bddd6c 100644 --- a/product_variant_configurator/models/product_product.py +++ b/product_variant_configurator/models/product_product.py @@ -136,7 +136,7 @@ def name_get(self): if isinstance(product.id, models.NewId): res.append((product.id, product.name)) else: - res.append(super(ProductProduct, product).name_get()[0]) + res.extend(tuple(super(ProductProduct, product).name_get())) return res @api.model_create_multi