From 70c4b6e3b25447cff25da2122968e8958cb702fc Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 13 Dec 2021 21:53:30 -0600 Subject: [PATCH] Move the Trainwreck (Transactions) menu entry under Reporting --- theo/web/menus.py | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/theo/web/menus.py b/theo/web/menus.py index 76fca91..8639169 100644 --- a/theo/web/menus.py +++ b/theo/web/menus.py @@ -217,6 +217,13 @@ def simple_menus(request): 'url': url('report_output'), 'perm': 'report_output.list', }, + {'type': 'sep'}, + { + 'title': "Trainwreck", + 'url': url('trainwreck.transactions'), + 'perm': 'trainwreck.transactions.list', + }, + {'type': 'sep'}, { 'title': "Problem Reports", 'url': url('problem_reports'), @@ -225,18 +232,6 @@ def simple_menus(request): ], } - trainwreck_menu = { - 'title': "Trainwreck", - 'type': 'menu', - 'items': [ - { - 'title': "Transactions", - 'url': url('trainwreck.transactions'), - 'perm': 'trainwreck.transactions.list', - }, - ], - } - admin_menu = { 'title': "Admin", 'type': 'menu', @@ -330,9 +325,6 @@ def simple_menus(request): if include_locsms: menus.append(locsms_menu) - if rattail_config.trainwreck_engine: - menus.append(trainwreck_menu) - menus.extend([ reporting_menu, admin_menu,