Skip to content

Changing all stock items to not delete on depletion #4437

Closed Answered by SchrodingersGat
StormTrooper asked this question in Q&A
Discussion options

You must be logged in to vote

@StormTrooper if you have shell access to the server you can do the same thing through the django ORM CLI:

cd InvenTree
python ./manage.py shell

>>> from stock.models import StockItem()
>>> StockItem.objects.all().update(delete_on_deplete=False)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by StormTrooper
Comment options

You must be logged in to vote
1 reply
@SchrodingersGat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants