From 31cda0823ae1a303698a677eaca6a69d60c67a36 Mon Sep 17 00:00:00 2001 From: Oliver <oliver.henry.walters@gmail.com> Date: Sat, 14 Sep 2024 09:53:04 +1000 Subject: [PATCH] Label fix (#533) * Bug fix for stock item label printing - Simple typo - Closes https://github.com/inventree/inventree-app/issues/531 * Update version --- 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 bc02280b..ad1449ee 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,3 +1,8 @@ +### 0.16.4 - September 2024 +--- + +- Fixes bug related to printing stock item labels + ### 0.16.3 - August 2024 --- diff --git a/lib/widget/stock/stock_detail.dart b/lib/widget/stock/stock_detail.dart index 88a0ba14..93b02b13 100644 --- a/lib/widget/stock/stock_detail.dart +++ b/lib/widget/stock/stock_detail.dart @@ -259,7 +259,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> { // Request information on labels available for this stock item if (allowLabelPrinting) { - String model_type = api.supportsModernLabelPrinting ? InvenTreeStockLocation().MODEL_TYPE : "stock"; + String model_type = api.supportsModernLabelPrinting ? InvenTreeStockItem().MODEL_TYPE : "stock"; String item_key = api.supportsModernLabelPrinting ? "items" : "item"; // Clear the existing labels list diff --git a/pubspec.yaml b/pubspec.yaml index a00d6866..d2505d23 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: inventree description: InvenTree stock management -version: 0.16.3+89 +version: 0.16.4+90 environment: sdk: ">=2.19.5 <3.13.0"