summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-09-04 09:39:08 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-09-04 09:39:08 +0700
commitf6537c3987112c351a2a099475b1e32a9e8de76e (patch)
tree654a010f1129da8089ffbde4e9d0bbe03831cdcc
parenta870c651045725bb77d621bdcbe6b610d0b52b49 (diff)
<Miqdad> Fix singleton mathces SO
-rw-r--r--indoteknik_custom/models/purchase_order_sales_match.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order_sales_match.py b/indoteknik_custom/models/purchase_order_sales_match.py
index b18864f3..084b93f7 100644
--- a/indoteknik_custom/models/purchase_order_sales_match.py
+++ b/indoteknik_custom/models/purchase_order_sales_match.py
@@ -39,7 +39,7 @@ class PurchaseOrderSalesMatch(models.Model):
('sale_line_id', '=', rec.sale_line_id.id),
])
if stock_move:
- rec.bu_pick = stock_move.picking_id.id
+ rec.bu_pick = stock_move[0].picking_id.id
else:
rec.bu_pick = None