summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):