-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit Assignment Broken for Inventory Items #90
Comments
I've tested this just now under netbox v3.4.8 and netbox-inventory v1.2.3 and it seems to be working or me. Could you give a more detailed description of steps you perform when it's not working? What version of netbox.inventory are you running and that are your settings under |
Howdy, netbox v3.4.8 and netbox-inventory v1.2.3, all default configs nothing defined. Create a new asset, so Assets -> Add Name: Test1 All other fields blank. This creates asset ID 12 Next, use "Create Inventory Item" Select a device (server01) All other fields blank, this creates inventory item 17 which shows properly attached to server01 etc. Now goto Assets -> "Edit Assigned Hardware" , both "Site" and "Device" are blank , but the Inventory Item displays correctly. Change "Device" to server02, a popup shows "Modified asset D3-S4510 (id:12)" but installed location remains server01 |
Ah I see. You want to move inventory item (and asset if assigned to inventory item) to another device. The method you are trying to use is meant to establish relation from asset to a different inventory item (that must already exist). Unfortunately the current netbox UI does not make it very clear that what you selected was in fact the same inventory item and not another one on a different device. Currently, the fields Site and Device are used to filter the list of available Inventory items. When you selected server02, the valid choices for inventory item are only those that already exist and are assigned to server02, but the current selection is not cleared unfortunately. I believe in netbox 3.5 this will be clearer. What you want to do is move inventory item to another device. You could do that up-to netbox version 3.4.7 by editing inventory item and selecting a different device ( As @jonathanspw already mentioned in 3.4.8 this doesn't work anymore. As per netbox-community/netbox#12255 it looks like this is an issue in netbox and will hopefully be fixed in the next version. Until then, I suppose you have to:
|
Can confirm things are working as expected in 3.4.7. Would you like a PR to update buttons/wording a little bit to clarify the functionality of editing the inventory item association? |
Sure, that would be most welcome. I also see netbox developers are working on a fix to again allow changing device of an an inventory item so hopefully this will be fixed soon. |
Looks like fix for this was included in v3.4.9. |
The edit assignment functionality seems to be broken as of NetBox 3.4.8, perhaps earlier.
The edit can be submitted and no errors are thrown, but the assignment is not updated.
Perhaps it's related to netbox-community/netbox#11432 from the 3.4.8 changelog.
The text was updated successfully, but these errors were encountered: