2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-04 23:25:42 +00:00

Unit test fixes

This commit is contained in:
Oliver
2021-09-07 17:36:53 +10:00
parent 918106c225
commit 5ab4be7025
3 changed files with 15 additions and 4 deletions

View File

@@ -1305,7 +1305,6 @@ class StockItem(MPTTModel):
self.quantity = quantity
if quantity == 0 and self.delete_on_deplete and self.can_delete():
self.mark_for_deletion()