diff --git a/ereuse_devicehub/resources/device/metrics.py b/ereuse_devicehub/resources/device/metrics.py index 55d6894c..df713c42 100644 --- a/ereuse_devicehub/resources/device/metrics.py +++ b/ereuse_devicehub/resources/device/metrics.py @@ -219,7 +219,7 @@ class TradeMetrics(MetricsMix): row['type'] = 'Trade-Document' row['action_type'] = 'Trade-Document' - if self.document.weight: + if self.document.total_weight: row['type'] = 'Trade-Container' row['action_type'] = 'Trade-Container'