2
0
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:
Oliver Walters
2020-03-22 18:13:34 +11:00
parent cc41752f9f
commit 56a6943438
4 changed files with 80 additions and 0 deletions

View File

@ -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))