From 063a0e51420af9b5b991d6cbfc63adc3e169d0d1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 19 Sep 2021 16:52:31 +0200 Subject: [PATCH] Link preflight check --- InvenTree/plugins/integration/integration.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugins/integration/integration.py b/InvenTree/plugins/integration/integration.py index 695cf02067..f1e988c562 100644 --- a/InvenTree/plugins/integration/integration.py +++ b/InvenTree/plugins/integration/integration.py @@ -86,7 +86,12 @@ class NavigationMixin: """ setup navigation links for this plugin """ - return getattr(self, 'NAVIGATION', None) + nav_links = getattr(self, 'NAVIGATION', None) + if nav_links: + for link in nav_links: + if False in [a in link for a in ('link', 'name', )]: + raise NotImplementedError('Wrong Link definition', link) + return nav_links @property def has_naviation(self):