fix regression

This commit is contained in:
Raphael Michel
2021-05-19 11:33:12 +02:00
parent 587c4f5a81
commit 94632e5514

View File

@@ -581,7 +581,7 @@ def itemvarquota_select2(request, **kwargs):
for i in itemqs:
variations = list(i.variations.all())
if variations:
choices.append((str(i.pk), _('{product} Any variation').format(product=i), ''))
choices.append((str(i.pk), _('{product} Any variation').format(product=i), '', not i.active))
for v in variations:
choices.append(('%d-%d' % (i.pk, v.pk), '%s %s' % (i, v.value), '', not i.active))
else: