mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 02:11:16 +00:00
Fix comparison operator
This commit is contained in:
1 parent
75d7530e30
commit
3a7f8c9196
1 file changed
+1
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user