summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-02 09:46:44 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-02 09:46:44 +0700
commitdfd29c531843fb3ba4b7a7d2f94bad07a08bc1b5 (patch)
tree889e2cc4f7c26f1799d10c8b56e741774b819ec5
parent7d3780ede67579b5891218efc370dc82eef510a1 (diff)
<iman> update ready stock auto sync
-rw-r--r--indoteknik_custom/models/stock_picking.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 66a326ff..6f038386 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -406,6 +406,10 @@ class StockPicking(models.Model):
if product:
product.product_tmpl_id._create_solr_queue('_sync_product_stock_to_solr')
+ for move_line in self.move_line_ids_without_package:
+ if move_line.product_id:
+ move_line.product_id.product_tmpl_id._create_solr_queue('_sync_product_stock_to_solr')
+
if not self.date_reserved:
current_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
self.date_reserved = current_time