Removing Inventory Items with Children Items breaks Inventory count #8746

Closed
opened 2025-12-29 20:40:42 +01:00 by adam · 0 comments
Owner

Originally created by @corbosman on GitHub (Oct 14, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.6.3

Python version

3.8

Steps to Reproduce

  1. add an inventory item to a device
  2. add a child inventory item to the item from 1.
  3. remove both at the same time

Expected Behavior

For the inventory item count to be correct

Observed Behavior

Inventory count is -1
Screenshot 2023-10-14 at 13 25 25
Screenshot 2023-10-14 at 13 25 35

Originally created by @corbosman on GitHub (Oct 14, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.6.3 ### Python version 3.8 ### Steps to Reproduce 1. add an inventory item to a device 2. add a child inventory item to the item from 1. 3. remove both at the same time ### Expected Behavior For the inventory item count to be correct ### Observed Behavior Inventory count is -1 ![Screenshot 2023-10-14 at 13 25 25](https://github.com/netbox-community/netbox/assets/1389007/3af69cc2-df96-419d-9d60-36cd2d46e9be) ![Screenshot 2023-10-14 at 13 25 35](https://github.com/netbox-community/netbox/assets/1389007/1c1f2174-ecf5-4856-a8a4-33cc58cc6d07)
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 20:40:42 +01:00
adam closed this issue 2025-12-29 20:40:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8746