From 7adfeeeddfc1fe6093fe5a007f72b019a554c3f8 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 26 Apr 2026 09:54:51 +1000 Subject: [PATCH] Fix for label printing (#813) - Closes https://github.com/inventree/inventree-app/issues/812 Co-authored-by: Copilot --- assets/release_notes.md | 5 +++++ lib/api_form.dart | 12 ++++++++++++ pubspec.yaml | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/assets/release_notes.md b/assets/release_notes.md index df419a2b..120880e5 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,3 +1,8 @@ +## 0.24.1 - April 2026 +--- + +- Fixes bug which prevented label printing + ## 0.24.0 - April 2026 --- diff --git a/lib/api_form.dart b/lib/api_form.dart index 13e0c927..49838966 100644 --- a/lib/api_form.dart +++ b/lib/api_form.dart @@ -814,6 +814,18 @@ class APIFormField { subtitle: Text(project_code.description), leading: Icon(TablerIcons.list), ); + case "labeltemplate": + return ListTile( + title: Text((data["name"] ?? "").toString()), + subtitle: Text((data["description"] ?? "").toString()), + ); + case "pluginconfig": + return ListTile( + title: Text( + (data["meta"]?["human_name"] ?? data["name"] ?? "").toString(), + ), + subtitle: Text((data["meta"]?["description"] ?? "").toString()), + ); default: return ListTile( title: Text( diff --git a/pubspec.yaml b/pubspec.yaml index 0b1fa88c..a226b05b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: inventree description: InvenTree stock management -version: 0.24.0+118 +version: 0.24.1+119 environment: sdk: ^3.8.1