mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make simpler
This commit is contained in:
parent
db66546606
commit
f8c4470d98
@ -2188,9 +2188,7 @@ def after_save_part(sender, instance: Part, created, **kwargs):
|
||||
Function to be executed after a Part is saved
|
||||
"""
|
||||
|
||||
if created:
|
||||
pass
|
||||
else:
|
||||
if not created:
|
||||
# Check part stock only if we are *updating* the part (not creating it)
|
||||
|
||||
# Run this check in the background
|
||||
|
Loading…
x
Reference in New Issue
Block a user