[PR #12311] [MERGED] 12255 inventory item device change #13945

Closed
opened 2025-12-29 23:21:41 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12311
Author: @arthanson
Created: 4/20/2023
Status: Merged
Merged: 4/21/2023
Merged by: @jeremystretch

Base: developHead: 12255-inventory-item-device-change


📝 Commits (6)

  • f3413e1 #12255 allow inventory items to change devices
  • 700ee12 #12255 allow inventory item template to change devices
  • 268f894 #12255 fix init
  • 74c22e4 Merge branch 'develop' into 12255-inventory-item-device-change
  • 7a69004 12255 remove can_swtich from template model
  • 8bbc6cb 12255 change to check module list

📊 Changes

2 files changed (+16 additions, -12 deletions)

View changed files

📝 netbox/dcim/models/device_component_templates.py (+14 -11)
📝 netbox/dcim/models/device_components.py (+2 -1)

📄 Description

Fixes: #12255

Allows inventory item to change device.
Fixes template models setting device type - no exception needed for inventory_item_template as that is restricted from changing device_type in the UI as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/12311 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 4/20/2023 **Status:** ✅ Merged **Merged:** 4/21/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `12255-inventory-item-device-change` --- ### 📝 Commits (6) - [`f3413e1`](https://github.com/netbox-community/netbox/commit/f3413e185131dcba839ed4be6b9d5abfe6387762) #12255 allow inventory items to change devices - [`700ee12`](https://github.com/netbox-community/netbox/commit/700ee1237f3654cb05b8be8f371e61b4a26a3c34) #12255 allow inventory item template to change devices - [`268f894`](https://github.com/netbox-community/netbox/commit/268f894c20ffde330738ba9ed0405c34d589d641) #12255 fix init - [`74c22e4`](https://github.com/netbox-community/netbox/commit/74c22e4565d67d502e4213ae4803368fd7d26471) Merge branch 'develop' into 12255-inventory-item-device-change - [`7a69004`](https://github.com/netbox-community/netbox/commit/7a69004801e73200b6574eaa08982d1cd5b86231) 12255 remove can_swtich from template model - [`8bbc6cb`](https://github.com/netbox-community/netbox/commit/8bbc6cbcafde5aedc68c365f0f51cb38f03a8d84) 12255 change to check module list ### 📊 Changes **2 files changed** (+16 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models/device_component_templates.py` (+14 -11) 📝 `netbox/dcim/models/device_components.py` (+2 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #12255 <!-- Please include a summary of the proposed changes below. --> Allows inventory item to change device. Fixes template models setting device type - no exception needed for inventory_item_template as that is restricted from changing device_type in the UI as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:41 +01:00
adam closed this issue 2025-12-29 23:21:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13945