[PR #8186] [MERGED] Closes #8118: Inventory item templates #13330

Closed
opened 2025-12-29 22:26:48 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8186
Author: @jeremystretch
Created: 12/29/2021
Status: Merged
Merged: 12/29/2021
Merged by: @jeremystretch

Base: featureHead: 8118-inventoryitem-template


📝 Commits (3)

📊 Changes

28 files changed (+766 additions, -63 deletions)

View changed files

📝 docs/models/dcim/devicetype.md (+2 -2)
📝 docs/models/dcim/inventoryitem.md (+3 -3)
docs/models/dcim/inventoryitemtemplate.md (+3 -0)
📝 docs/release-notes/version-3.2.md (+7 -0)
📝 netbox/dcim/api/nested_serializers.py (+10 -0)
📝 netbox/dcim/api/serializers.py (+34 -0)
📝 netbox/dcim/api/urls.py (+1 -0)
📝 netbox/dcim/api/views.py (+6 -0)
📝 netbox/dcim/constants.py (+12 -0)
📝 netbox/dcim/filtersets.py (+44 -0)
📝 netbox/dcim/forms/bulk_edit.py (+26 -0)
📝 netbox/dcim/forms/models.py (+43 -0)
📝 netbox/dcim/forms/object_import.py (+67 -18)
📝 netbox/dcim/graphql/schema.py (+3 -0)
📝 netbox/dcim/graphql/types.py (+9 -0)
netbox/dcim/migrations/0148_inventoryitem_templates.py (+43 -0)
📝 netbox/dcim/models/device_component_templates.py (+110 -10)
📝 netbox/dcim/models/devices.py (+3 -0)
📝 netbox/dcim/tables/devicetypes.py (+40 -8)
📝 netbox/dcim/tables/template_code.py (+13 -0)

...and 8 more files

📄 Description

Closes: #8118

  • Introduce the InventoryItemTemplate model & associated views, tests, etc.
  • Extend the device type views as appropriate
  • Refactor ComponentCreateView a bit
  • Tweak & reuse the inventoryitem_create.html template

🔄 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/8186 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/29/2021 **Status:** ✅ Merged **Merged:** 12/29/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `8118-inventoryitem-template` --- ### 📝 Commits (3) - [`4c15f4a`](https://github.com/netbox-community/netbox/commit/4c15f4a84f9d18ece8d908c3bdaf0e92bb723666) Initial work on #8118 - [`791cc09`](https://github.com/netbox-community/netbox/commit/791cc093f478f987c1ed52fd6e9064003eb963e6) Enable the association of inventory item templates with component templates - [`1edf80d`](https://github.com/netbox-community/netbox/commit/1edf80db8eead41037ead4960634c6ea28e2078e) Changelog & documentation for #8118 ### 📊 Changes **28 files changed** (+766 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/dcim/devicetype.md` (+2 -2) 📝 `docs/models/dcim/inventoryitem.md` (+3 -3) ➕ `docs/models/dcim/inventoryitemtemplate.md` (+3 -0) 📝 `docs/release-notes/version-3.2.md` (+7 -0) 📝 `netbox/dcim/api/nested_serializers.py` (+10 -0) 📝 `netbox/dcim/api/serializers.py` (+34 -0) 📝 `netbox/dcim/api/urls.py` (+1 -0) 📝 `netbox/dcim/api/views.py` (+6 -0) 📝 `netbox/dcim/constants.py` (+12 -0) 📝 `netbox/dcim/filtersets.py` (+44 -0) 📝 `netbox/dcim/forms/bulk_edit.py` (+26 -0) 📝 `netbox/dcim/forms/models.py` (+43 -0) 📝 `netbox/dcim/forms/object_import.py` (+67 -18) 📝 `netbox/dcim/graphql/schema.py` (+3 -0) 📝 `netbox/dcim/graphql/types.py` (+9 -0) ➕ `netbox/dcim/migrations/0148_inventoryitem_templates.py` (+43 -0) 📝 `netbox/dcim/models/device_component_templates.py` (+110 -10) 📝 `netbox/dcim/models/devices.py` (+3 -0) 📝 `netbox/dcim/tables/devicetypes.py` (+40 -8) 📝 `netbox/dcim/tables/template_code.py` (+13 -0) _...and 8 more files_ </details> ### 📄 Description ### Closes: #8118 - Introduce the InventoryItemTemplate model & associated views, tests, etc. - Extend the device type views as appropriate - Refactor ComponentCreateView a bit - Tweak & reuse the `inventoryitem_create.html` template --- <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 22:26:48 +01:00
adam closed this issue 2025-12-29 22:26:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13330