2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 21:30:54 +00:00

Add 'barcode_hash' data to more API serializers: (#3906)

* Add 'barcode_hash' data to more API serializers:

- part
- stock location
- supplier part

* Bump API version

* Make 'barcode_hash' fields read-only via the API

* Fix for Part serializer
This commit is contained in:
Oliver
2022-11-07 22:36:15 +11:00
committed by GitHub
parent 0c0e61432d
commit 92260f2059
4 changed files with 28 additions and 1 deletions

View File

@@ -294,6 +294,7 @@ class SupplierPartSerializer(InvenTreeModelSerializer):
'MPN',
'note',
'pk',
'barcode_hash',
'packaging',
'pack_size',
'part',
@@ -307,6 +308,7 @@ class SupplierPartSerializer(InvenTreeModelSerializer):
read_only_fields = [
'availability_updated',
'barcode_hash',
]
@staticmethod