diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-09-04 09:39:08 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-09-04 09:39:08 +0700 |
| commit | f6537c3987112c351a2a099475b1e32a9e8de76e (patch) | |
| tree | 654a010f1129da8089ffbde4e9d0bbe03831cdcc | |
| parent | a870c651045725bb77d621bdcbe6b610d0b52b49 (diff) | |
<Miqdad> Fix singleton mathces SO
| -rw-r--r-- | indoteknik_custom/models/purchase_order_sales_match.py | 2 |
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 |
