From c213bddb8ceaa55af7527f4de295b921997c83da Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 11 Jan 2022 11:21:17 +0100 Subject: [PATCH 01/34] fix a main_inventory --- ereuse_devicehub/static/js/main_inventory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index 1f1b6d4c..d876ddca 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -1,6 +1,6 @@ - $(document) .ready(function() { - $(".deviceSelect").on("change", deviceSelect); -// $('#selectLot').selectpicker(); +$(document).ready(function() { + $(".deviceSelect").on("change", deviceSelect); + // $('#selectLot').selectpicker(); }) function deviceSelect() { From 062eed3d9827dfc7e35db3920c128dce913b41e9 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 11 Jan 2022 11:46:47 +0100 Subject: [PATCH 02/34] unassigned have only the devices than not exist in any lot --- ereuse_devicehub/inventory/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 55ed61e8..63a5a336 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -25,7 +25,7 @@ class DeviceListView(View): else: devices = Device.query.filter( Device.owner_id == current_user.id).filter( - Device.type.in_(filter_types)) + Device.type.in_(filter_types)).filter(Device.lots == None) context = {'devices': devices, 'lots': lots, From e0e4ecfd2d8d983d3f14df73ef4843261b8a483e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 12 Jan 2022 16:52:55 +0100 Subject: [PATCH 03/34] replace Temporal for Temporary --- ereuse_devicehub/templates/ereuse_devicehub/base_site.html | 4 ++-- ereuse_devicehub/templates/inventory/device_list.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/templates/ereuse_devicehub/base_site.html b/ereuse_devicehub/templates/ereuse_devicehub/base_site.html index e4ae17f6..a85cd316 100644 --- a/ereuse_devicehub/templates/ereuse_devicehub/base_site.html +++ b/ereuse_devicehub/templates/ereuse_devicehub/base_site.html @@ -133,12 +133,12 @@