Skip to content

Commit 0cc5c9a

Browse files
committed
Use Sku in export
1 parent 0fcac08 commit 0cc5c9a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

bakeup/workshop/exports.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def get_data(self):
536536
purchase_date = order.created.strftime("%Y-%m-%d")
537537
shipping_date = ""
538538
payment_date = ""
539-
539+
position_product = position.get_product()
540540
row = [
541541
str(order_number),
542542
"item",
@@ -582,11 +582,8 @@ def get_data(self):
582582
"", # state
583583
"DE",
584584
(
585-
str(
586-
position.product.product_template.sku
587-
or position.product.product_template.pk
588-
)
589-
if position.product
585+
str(position_product.sku or position_product.pk)
586+
if position_product
590587
else ""
591588
),
592589
(

0 commit comments

Comments
 (0)