Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename weight unit to gram
Maciej Korycinski89ca8715ed22
diff --git a/saleor/webhook/payloads.py b/saleor/webhook/payloads.pyindex 99b44cf306..3a62e623a0 100644--- a/saleor/webhook/payloads.py+++ b/saleor/webhook/payloads.py@@ -221,7 +221,7 @@ def generate_fulfillment_lines_payload(fulfillment: Fulfillment):fields=line_fields,extra_dict_data={"weight": (lambda fl: fl.order_line.variant.get_weight().g),- "weight_unit": "grams",+ "weight_unit": "gram","product_type": (lambda fl: fl.order_line.variant.product.product_type.name),