diff --git a/InvenTree/plugins/integration.py b/InvenTree/plugins/integration.py index 10d8b58d66..fdc2ed2105 100644 --- a/InvenTree/plugins/integration.py +++ b/InvenTree/plugins/integration.py @@ -144,6 +144,8 @@ class UrlsMixin: class NavigationMixin: """Mixin that enables adding navigation links with the plugin""" + NAVIGATION_TAB_NAME = None + class Meta: """meta options for this mixin""" MIXIN_NAME = 'Navigation Links' @@ -172,6 +174,14 @@ class NavigationMixin: """ return bool(self.navigation) + @property + def navigation_name(self): + """name for navigation tab""" + name = getattr(self, 'NAVIGATION_TAB_NAME', None) + if not name: + name = self.human_name + return name + class AppMixin: """Mixin that enables full django app functions for a plugin""" diff --git a/InvenTree/templates/navbar.html b/InvenTree/templates/navbar.html index ef3d4066a8..754f1739ae 100644 --- a/InvenTree/templates/navbar.html +++ b/InvenTree/templates/navbar.html @@ -65,7 +65,7 @@ {% if navigation %}