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:
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
|
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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user