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