File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed
Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 22---
33
44- Improved UX across the entire app
5+ - Fix bug which prevented display of part images for purchase order line items
56
67### 0.19.1 - July 2025
78---
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ class InvenTreeFileService extends FileService {
118118
119119 if (_client != null ) {
120120 _client! .badCertificateCallback = (cert, host, port) {
121- print ("BAD CERTIFICATE CALLBACK FOR IMAGE REQUEST" );
122121 return ! strictHttps;
123122 };
124123 }
Original file line number Diff line number Diff line change @@ -732,6 +732,8 @@ class InvenTreeModel {
732732
733733 var response = await api.get (URL , params: params);
734734
735+ print ("paginated: ${URL }: ${params }" );
736+
735737 if (! response.isValid ()) {
736738 return null ;
737739 }
Original file line number Diff line number Diff line change @@ -114,7 +114,15 @@ class InvenTreeOrderLine extends InvenTreeModel {
114114
115115 String get partName => getString ("name" , subKey: "part_detail" );
116116
117- String get partImage => getString ("thumbnail" , subKey: "part_detail" );
117+ String get partImage {
118+ String img = getString ("thumbnail" , subKey: "part_detail" );
119+
120+ if (img.isEmpty) {
121+ img = getString ("image" , subKey: "part_detail" );
122+ }
123+
124+ return img;
125+ }
118126
119127 String get targetDate => getDateString ("target_date" );
120128}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class _PaginatedPOLineListState
6767 final page = await InvenTreePOLineItem ().listPaginated (
6868 limit,
6969 offset,
70- filters: params,
70+ filters: {... params} ,
7171 );
7272 return page;
7373 }
@@ -85,7 +85,7 @@ class _PaginatedPOLineListState
8585 item.progressString,
8686 color: item.isComplete ? COLOR_SUCCESS : COLOR_WARNING ,
8787 ),
88- leading: InvenTreeAPI ().getThumbnail (supplierPart .partImage),
88+ leading: InvenTreeAPI ().getThumbnail (item .partImage),
8989 onTap: () async {
9090 showLoadingOverlay ();
9191 await item.reload ();
You can’t perform that action at this time.
0 commit comments