Skip to content

Commit

Permalink
[FIX] product_variant_configurator: add existence condition to set name
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchov committed May 23, 2024
1 parent 6c37460 commit c1b214d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions product_variant_configurator/models/product_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ def _onchange_product_id_configurator(self):
.with_context(lang=self.partner_id.lang)
.browse(self.product_id.id)
)
self.name = self._get_product_description(
product.product_tmpl_id,
product,
product.product_template_attribute_value_ids,
)
if "name" in self._fields:
self.name = self._get_product_description(
product.product_tmpl_id,
product,
product.product_template_attribute_value_ids,
)
self.product_tmpl_id = product.product_tmpl_id.id
self._set_product_attributes()

Expand Down

0 comments on commit c1b214d

Please sign in to comment.