summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-06-25 09:58:26 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-06-25 09:58:26 +0700
commit92bf91488eca67adabb6bfe8394385a9cee1032d (patch)
treebd81c5c0c0441b29580b308a866f03182c472dd0
parent551d22a1dad24b60e5e1117c70d008dd2eab454d (diff)
fix bu pick automatic reserve
-rw-r--r--indoteknik_custom/models/stock_picking.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 27046063..c884f97e 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1356,6 +1356,8 @@ class StockPicking(models.Model):
])
for line in po.order_sales_match_line:
+ if not line.bu_pick:
+ continue
line.bu_pick.action_assign()
def check_invoice_date(self):