2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00
This commit is contained in:
Matthias 2022-02-20 04:40:18 +01:00
parent e9b501f7eb
commit ebd54045ec
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -517,7 +517,7 @@ class StockList(generics.ListCreateAPIView):
# An expiry date was *not* specified - try to infer it! # An expiry date was *not* specified - try to infer it!
if 'expiry_date' not in data and part.default_expiry > 0: if 'expiry_date' not in data and part.default_expiry > 0:
data['expiry_date'] = datetime.now().date() + timedelta(days=part.default_expiry) data['expiry_date'] = datetime.now().date() + timedelta(days=part.default_expiry)
# Attempt to extract serial numbers from submitted data # Attempt to extract serial numbers from submitted data
serials = None serials = None