From ebd54045ecd01eafc1e6f5fdae387c0eaf14ef36 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 20 Feb 2022 04:40:18 +0100 Subject: [PATCH] PEP fix --- InvenTree/stock/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index fb1cc5f2ba..ed7a4b8c40 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -517,7 +517,7 @@ class StockList(generics.ListCreateAPIView): # An expiry date was *not* specified - try to infer it! 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 serials = None