Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions product_variant_default_code/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ def _generate_default_code(self):
else:
product_attrs = defaultdict(str)
reference_mask = ReferenceMask(self.product_tmpl_id.reference_mask)
if reference_mask.template is False:
reference_mask.template = ""
main_lang = self.product_tmpl_id._guess_main_lang()
for attr in self.product_template_attribute_value_ids:
value = attr.product_attribute_value_id
Expand Down