mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 05:46:34 +00:00
Add an 'attachment' page for the PurchaseOrder view
This commit is contained in:
@ -942,6 +942,9 @@ def attach_file(instance, filename):
|
||||
|
||||
|
||||
class PartAttachment(InvenTreeAttachment):
|
||||
"""
|
||||
Model for storing file attachments against a Part object
|
||||
"""
|
||||
|
||||
def getSubdir(self):
|
||||
return os.path.join("part_files", str(self.part.id))
|
||||
|
Reference in New Issue
Block a user