From ec9a7176a2673da48d5445fcae0deba6d00c2eb6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 9 Mar 2026 21:43:53 +1100 Subject: [PATCH] [bug] Fix for testable items (#796) - Show test results --- assets/release_notes.md | 5 +++++ lib/widget/stock/stock_detail.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/release_notes.md b/assets/release_notes.md index 581eb885..f98a63eb 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,3 +1,8 @@ +## 0.22.6 - March 2026 +--- + +- Fix for displaying stock item test results + ## 0.22.5 - March 2026 --- diff --git a/lib/widget/stock/stock_detail.dart b/lib/widget/stock/stock_detail.dart index 282a9627..ed10212a 100644 --- a/lib/widget/stock/stock_detail.dart +++ b/lib/widget/stock/stock_detail.dart @@ -225,7 +225,7 @@ class _StockItemDisplayState extends RefreshableState { // Request part information part = await InvenTreePart().get(widget.item.partId) as InvenTreePart?; - stockShowTests &= part?.isTrackable ?? false; + stockShowTests &= part?.isTestable ?? false; // Request default location int? defaultLocationId = part?.defaultLocation; diff --git a/pubspec.yaml b/pubspec.yaml index 3784cf7f..65a91ad0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: inventree description: InvenTree stock management -version: 0.22.5+114 +version: 0.22.6+115 environment: sdk: ^3.8.1