Skip to content
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

Inventory Items in v3.2 beta 2 #8970

Closed
tomwoodcraft opened this issue Mar 25, 2022 · 1 comment
Closed

Inventory Items in v3.2 beta 2 #8970

tomwoodcraft opened this issue Mar 25, 2022 · 1 comment
Assignees
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@tomwoodcraft
Copy link

NetBox version

v3.2.0 beta2

Python version

3.9

Steps to Reproduce

(Python v3.10 but not an option on drop down)

A couple of issues with inventory items.

(1) Trying to nest inventory items on a Device Type doesn't appear to work. You can create inventory items against the type but if you try to specify a parent on a second inventory item in the drop down, the first item doesn't show (nor do any others).

(2) If you go to create an inventory item on a device type there's an option to add a module type at the top of the form (indicating they should be creatable against module types?) but they are only created against the device type still. There is no inventory item in the components drop down when creating a module type.

(This was observed and tested in the beta demo)

Expected Behavior

From my understanding, the inventory items for device types and module types should both behave the same way as device (instances)? So you would be able to add nested inventory items to track components making up a device and then when you create devices or modules from these types, inventory items are created automatically, in the same way as the rest of components - interfaces, ports etc.

Observed Behavior

Nesting inventory items not possible for device types

Inventory items not possible for modules

@tomwoodcraft tomwoodcraft added the type: bug A confirmed report of unexpected behavior in the application label Mar 25, 2022
@jeremystretch jeremystretch added beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation labels Mar 28, 2022
@jeremystretch jeremystretch self-assigned this Mar 28, 2022
@tomwoodcraft
Copy link
Author

tomwoodcraft commented Mar 29, 2022

Hi @jeremystretch, thanks for the prompt response for this. Tried testing the changes, the nested inventory now works on device types but when trying to create a device of that type seeing this error:

Field error: Cannot resolve keyword 'device' into field. Choices are: _name, child_items, component, component_id, component_type, component_type_id, created, description, device_type, device_type_id, id, label, last_updated, level, lft, manufacturer, manufacturer_id, name, parent, parent_id, part_id, rght, role, role_id, tree_id

This was referenced Apr 5, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants