From c6c443899a3be9d50dfb2660fe806b64f01db1df Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 20 Jun 2022 14:35:57 +0200 Subject: [PATCH] add temporary lots too in reports --- ereuse_devicehub/inventory/views.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 876ce1b3..83b78343 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -668,15 +668,11 @@ class ExportsView(View): for dev in self.find_devices(): for lot in dev.lots: - type_transfer = lot.type_transfer() - if type_transfer in ['Temporary', '']: - continue - row = [ dev.devicehub_id, lot.id, lot.name, - type_transfer, + lot.type_transfer(), lot.transfer and (lot.transfer.closed and 'Closed' or 'Open') or '', lot.transfer and lot.transfer.code or '', lot.transfer and lot.transfer.date or '',