From a5d5cc0fd1c8a75fe1ca68e8e37ad7851304b011 Mon Sep 17 00:00:00 2001 From: Lunga Baliwe Date: Wed, 13 Sep 2023 09:16:20 +0200 Subject: [PATCH] mOved custom code to bika.extras --- .../lims/controlpanel/bika_instruments.py | 25 ++++--------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/src/bika/lims/controlpanel/bika_instruments.py b/src/bika/lims/controlpanel/bika_instruments.py index ffc6f147d1..c3e8a451fe 100644 --- a/src/bika/lims/controlpanel/bika_instruments.py +++ b/src/bika/lims/controlpanel/bika_instruments.py @@ -87,18 +87,14 @@ def __init__(self, context, request): "title": _("Expiry Date"), "sortable": False, "toggle": True}), + ("WeeksToExpire", { + "title": _("Weeks To Expire"), + "sortable": False, + "toggle": False}), ("Methods", { "title": _("Methods"), "sortable": False, "toggle": True}), - ("ImportInterface", { - "title": _("Import Interface"), - "sortable": False, - "toggle": True}), - ("ExportInterface", { - "title": _("Export Interface"), - "sortable": False, - "toggle": True}), )) self.review_states = [ @@ -186,18 +182,7 @@ def folderitem(self, obj, item, index): css_class="link"), methods) item["replace"]["Methods"] = ", ".join(links) - - import_interface = obj.getImportDataInterface() - import_interfaces_list = obj.getImportDataInterfacesList() - if len(import_interface) > 1: - for name in import_interface: - if name: - item["replace"]["ImportInterface"] = import_interfaces_list.getValue(name) - - export_interfaces_list = obj.getExportDataInterfacesList() - export_interface = obj.DataInterface - if export_interface: - item["replace"]["ExportInterface"] = export_interfaces_list.getValue(export_interface) + return item