mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-01 17:51:23 +00:00
Add barcode to salesordershipment (#9745)
* Add InvenTreeBarcodeMixin to SalesOrderShipment * Barcode model type code method added for SalesOrderShipment class * Add barcode data to SalesOrderShipment serializer * Bump API version --------- Co-authored-by: meenaraj22 <meena@blaze.ws> Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
co-authored by
meenaraj22
Matthias Mair
parent
e17904eb56
commit
66db58bb36
@@ -1951,6 +1951,7 @@ class SalesOrderShipmentReportContext(report.mixins.BaseReportContext):
|
||||
|
||||
class SalesOrderShipment(
|
||||
InvenTree.models.InvenTreeAttachmentMixin,
|
||||
InvenTree.models.InvenTreeBarcodeMixin,
|
||||
InvenTree.models.InvenTreeNotesMixin,
|
||||
report.mixins.InvenTreeReportMixin,
|
||||
InvenTree.models.MetadataMixin,
|
||||
@@ -1970,6 +1971,11 @@ class SalesOrderShipment(
|
||||
notes: Custom notes field for this shipment
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def barcode_model_type_code(cls):
|
||||
"""Return the associated barcode model type code for this model."""
|
||||
return 'SS'
|
||||
|
||||
class Meta:
|
||||
"""Metaclass defines extra model options."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user