From 7faf195ee27aa5625bb1633845819dc69758862d Mon Sep 17 00:00:00 2001 From: Emmanuel HURET Date: Thu, 14 May 2020 17:19:33 +0200 Subject: [PATCH] [FIX] not sale_line in stock_picking --- connector_magento/models/stock_picking/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector_magento/models/stock_picking/common.py b/connector_magento/models/stock_picking/common.py index e02858f5c..f4f36e034 100644 --- a/connector_magento/models/stock_picking/common.py +++ b/connector_magento/models/stock_picking/common.py @@ -48,7 +48,7 @@ def get_notify_shipping_items(self): for move in self.move_lines: if move.procurement_id.sale_line_id and move.procurement_id.sale_line_id.magento_bind_ids: data.append({ - 'order_item_id': move.sale_line_id.magento_bind_ids[0].external_id, + 'order_item_id': move.procurement_id.sale_line_id.magento_bind_ids[0].external_id, 'qty': move.quantity_done, }) return data