feat: attrs on product
This commit is contained in:
@@ -51,6 +51,8 @@ class BarcodeService(BaseService):
|
||||
if not attribute_getter:
|
||||
continue
|
||||
value = attribute_getter.get_value(product)
|
||||
if not value:
|
||||
continue
|
||||
attributes_list.append(
|
||||
BarcodeAttributeSchema(
|
||||
name=attribute.name,
|
||||
@@ -66,7 +68,8 @@ class BarcodeService(BaseService):
|
||||
)
|
||||
barcode = BarcodeSchema(
|
||||
barcode=request.barcode,
|
||||
attributes=attributes_list
|
||||
attributes=attributes_list,
|
||||
additional_field=barcode_template.additional_field
|
||||
)
|
||||
return GetProductBarcodeResponse(barcode=barcode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user