mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Refactor PartAttachmentWidget
- Now displays generic attachments - Augment the InvenTreeAttachment class to "know" about its model reference
This commit is contained in:
parent
c8fa6bd992
commit
10783cd1c4
4 changed files with 67 additions and 49 deletions
|
|
@ -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/";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue