mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
PEP fix
This commit is contained in:
parent
e9b501f7eb
commit
ebd54045ec
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user