Skip to content

Commit

Permalink
[16.0][FIX] product_variant_configurator: Get all name_get values fro…
Browse files Browse the repository at this point in the history
…m 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
  • Loading branch information
diggy128 committed Dec 15, 2024
1 parent 992fcfc commit 64148c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product_variant_configurator/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64148c2

Please sign in to comment.