mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-02 14:15:45 +00:00
Support attachments against SupplierPart (#10724)
* Support attachments against SupplierPart * Update CHANGELOG.md * API update
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
"""InvenTree API version information."""
|
||||
|
||||
# InvenTree API version
|
||||
INVENTREE_API_VERSION = 420
|
||||
INVENTREE_API_VERSION = 421
|
||||
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||
|
||||
INVENTREE_API_TEXT = """
|
||||
|
||||
v421 -> 2025-10-31 : https://github.com/inventree/InvenTree/pull/10724
|
||||
- Allow upload of attachments against SupplierPart objects via the API
|
||||
|
||||
v420 -> 2025-10-26 : https://github.com/inventree/InvenTree/pull/10675
|
||||
- Adds optional "customer_detail" filter to SalesOrderShipment API endpoint
|
||||
|
||||
|
||||
@@ -669,6 +669,7 @@ class SupplierPartManager(models.Manager):
|
||||
|
||||
|
||||
class SupplierPart(
|
||||
InvenTree.models.InvenTreeAttachmentMixin,
|
||||
InvenTree.models.MetadataMixin,
|
||||
InvenTree.models.InvenTreeBarcodeMixin,
|
||||
InvenTree.models.InvenTreeNotesMixin,
|
||||
|
||||
@@ -32,6 +32,7 @@ import {
|
||||
} from '../../components/items/ActionDropdown';
|
||||
import InstanceDetail from '../../components/nav/InstanceDetail';
|
||||
import { PageDetail } from '../../components/nav/PageDetail';
|
||||
import AttachmentPanel from '../../components/panels/AttachmentPanel';
|
||||
import NotesPanel from '../../components/panels/NotesPanel';
|
||||
import type { PanelType } from '../../components/panels/Panel';
|
||||
import { PanelGroup } from '../../components/panels/PanelGroup';
|
||||
@@ -283,6 +284,10 @@ export default function SupplierPartDetail() {
|
||||
<Skeleton />
|
||||
)
|
||||
},
|
||||
AttachmentPanel({
|
||||
model_type: ModelType.supplierpart,
|
||||
model_id: supplierPart?.pk
|
||||
}),
|
||||
NotesPanel({
|
||||
model_type: ModelType.supplierpart,
|
||||
model_id: supplierPart?.pk
|
||||
|
||||
Reference in New Issue
Block a user