2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-05 06:48:48 +00:00

Fix comparison operator

This commit is contained in:
Oliver 2021-11-04 16:18:49 +11:00
parent 75d7530e30
commit 3a7f8c9196

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')