make simpler

This commit is contained in:
Matthias 2022-01-20 23:51:42 +01:00
parent db66546606
commit f8c4470d98
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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