2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Import fix for StockLocation (#4601)

* Import fix for StockLocation

- Mark "items" field as readonly

* Enforce integer widget for ID fields

* Re-add missing field
This commit is contained in:
Oliver
2023-04-12 09:31:25 +10:00
committed by GitHub
parent 25e2126b03
commit a06509491d
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ class BuildResource(InvenTreeResource):
'metadata',
]
id = Field(attribute='pk')
id = Field(attribute='pk', widget=widgets.IntegerWidget())
reference = Field(attribute='reference')