Skip to content

Commit

Permalink
[FIX] order
Browse files Browse the repository at this point in the history
  • Loading branch information
saxomanu committed May 14, 2020
1 parent 73792a6 commit da7adf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connector_magento/models/stock_picking/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def get_notify_shipping_items(self):
self.ensure_one()
data = []
for move in self.move_lines:
if move.sale_line_id and move.sale_line_id.magento_bind_ids:
if move.procurement_id.sale_line_id and move.procurement_id.sale_line_id.magento_bind_ids:
data.append({
'order_item_id': move.quantity_done,
'qty': move.sale_line_id.magento_bind_ids[0].external_id,
'order_item_id': move.sale_line_id.magento_bind_ids[0].external_id,
'qty': move.quantity_done,
})
return data

Expand Down

0 comments on commit da7adf3

Please # to comment.