Fix comparison operator

This commit is contained in:
Oliver committed 2021-11-04 16:18:49 +11:00
1 parent 75d7530e30
commit 3a7f8c9196
1 file changed
+1 -1
+1 -1
View File
@@ -2098,7 +2098,7 @@ class Part(MPTTModel):
Returns True if the total stock for this part is less than the minimum stock level Returns True if the total stock for this part is less than the minimum stock level
""" """
return self.get_stock_count() <= self.minimum_stock return self.get_stock_count() < self.minimum_stock
@receiver(post_save, sender=Part, dispatch_uid='part_post_save_log') @receiver(post_save, sender=Part, dispatch_uid='part_post_save_log')