Refactor PartAttachmentWidget

- Now displays generic attachments
- Augment the InvenTreeAttachment class to "know" about its model reference
This commit is contained in:
Oliver Walters 2022-06-04 00:12:44 +10:00
parent c8fa6bd992
commit 10783cd1c4
4 changed files with 67 additions and 49 deletions

View file

@ -422,6 +422,9 @@ class InvenTreePartAttachment extends InvenTreeAttachment {
InvenTreePartAttachment.fromJson(Map<String, dynamic> json) : super.fromJson(json);
@override
String get REFERENCE_FIELD => "part";
@override
String get URL => "part/attachment/";