fix: improved UI
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user