From 8c220cc04f5ec57cbb6837770cca599ddc7d1eb3 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Tue, 16 Aug 2022 11:39:51 -0400 Subject: [PATCH] Fixes #9491: Remove button for adding inventory item templates to module type components --- docs/release-notes/version-3.2.md | 1 + netbox/dcim/tables/template_code.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-3.2.md b/docs/release-notes/version-3.2.md index 7761dfc46..3fe1e8b23 100644 --- a/docs/release-notes/version-3.2.md +++ b/docs/release-notes/version-3.2.md @@ -14,6 +14,7 @@ ### Bug Fixes +* [#9491](https://github.com/netbox-community/netbox/issues/9491) - Remove button for adding inventory item templates to module type components * [#9979](https://github.com/netbox-community/netbox/issues/9979) - Fix Markdown rendering for custom fields in table columns * [#9986](https://github.com/netbox-community/netbox/issues/9986) - Workaround for upstream timezone data bug diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 7124c2b1f..b9ddf6f43 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -100,7 +100,7 @@ LOCATION_BUTTONS = """ MODULAR_COMPONENT_TEMPLATE_BUTTONS = """ {% load helpers %} -{% if perms.dcim.add_inventoryitemtemplate %} +{% if perms.dcim.add_inventoryitemtemplate and record.device_type_id %}