fix price_after_discount
This commit is contained in:
@@ -308,7 +308,7 @@ class ProductVariant(models.Model):
|
||||
|
||||
@property
|
||||
def price_after_discount(self):
|
||||
return self.price * (self.discount / 100)
|
||||
return self.price - self.discount_amount
|
||||
|
||||
@property
|
||||
def discount_amount(self):
|
||||
|
||||
Reference in New Issue
Block a user