mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix comparison operator
This commit is contained in:
parent
75d7530e30
commit
3a7f8c9196
@ -2098,7 +2098,7 @@ class Part(MPTTModel):
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user