fix: improved UI
CI / test (push) Failing after 1m8s
CI / build (push) Has been skipped

This commit is contained in:
2026-07-23 16:53:16 +02:00
parent d0a4cabb3b
commit 332e0fc5f4
6 changed files with 264 additions and 6 deletions
+5
View File
@@ -209,6 +209,11 @@ class ProductPrice(TimestampedModel):
self.price_with_tax = round(self.price + tax_value, 2)
super().save()
if self.current:
ProductPrice.objects.filter(product=self.product, variant=self.variant).exclude(pk=self.pk).update(
current=False
)
class Meta:
verbose_name = _('precio de producto')
verbose_name_plural = _('precio de producto')