You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FR]Display default stock location in the location selector #12304
Please verify that this feature request has NOT been suggested before.
I checked and didn't find a similar feature request
Problem statement
It would came handy if the default stock location could be selected easier for parts where it is set.
Suggested solution
Always add the default stock location (if set) as the first item (preferably with a separator) before the outermost locations.
This way the default location could be selected without any typing (mouse move only).
There were quite some improvements in the last few weeks around this selector. There is now an actually collapsible tree rendered. I would suggest a slightly different approach, what about adding a simple use default button on the right into the input field with some icon, then when hovering it shows the default location card, and when clicking selects the default location in the tree. Additionally we could also show a small default icon on the location in the tree, to indicate this to the user.
what about adding a simple use default button on the right into the input field with some icon, then when hovering it shows the default location card, and when clicking selects the default location in the tree.
Your idea is better and cleaner. Is there an icon in the theme for indicating default things?
I had been thinking this further: what if the default stock location would be selected by default?
Or asking from the different perspective: what else would be the role of the default stock location 🤔
This should be considered again with the new tree-select view for locations. @martonmiklos perhaps you would be able to work on an implementation for this?
I just realized that the Part categories are having default stock location too and I think it should be taken into account too.
My recommendation would be the following:
If the part's default stock location is being set then use it, if not then the part category default location shall be used if set.
Could you please confirm that this aligns with your expectations!
Activity
wolflu05 commentedon Jul 5, 2026
There were quite some improvements in the last few weeks around this selector. There is now an actually collapsible tree rendered. I would suggest a slightly different approach, what about adding a simple use default button on the right into the input field with some icon, then when hovering it shows the default location card, and when clicking selects the default location in the tree. Additionally we could also show a small default icon on the location in the tree, to indicate this to the user.
martonmiklos commentedon Jul 5, 2026
Your idea is better and cleaner. Is there an icon in the theme for indicating default things?
wolflu05 commentedon Jul 6, 2026
Not sure, I am not aware of one
martonmiklos commentedon Jul 6, 2026
I had been thinking this further: what if the default stock location would be selected by default?
Or asking from the different perspective: what else would be the role of the default stock location 🤔
SchrodingersGat commentedon Jul 31, 2026
This should be considered again with the new tree-select view for locations. @martonmiklos perhaps you would be able to work on an implementation for this?
SchrodingersGat commentedon Sep 22, 2026
@martonmiklos happy for you to work on this, but it won't be a priority otherwise.
martonmiklos commentedon Sep 22, 2026
Okay, I will try to catch up with InvenTree things.
So you are comfortable by selecting the default location automatically?
Select default location for new stock items in the case if it is set …
Select default location for new stock items in the case if it is set …
Select default location for new stock items in the case if it is set …
martonmiklos commentedon Sep 24, 2026
@SchrodingersGat
I just realized that the Part categories are having default stock location too and I think it should be taken into account too.
My recommendation would be the following:
If the part's default stock location is being set then use it, if not then the part category default location shall be used if set.
Could you please confirm that this aligns with your expectations!
Select default location for new stock items in the case if it is set …
Select default location for new stock items if it is set for a part (i…