summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-10-02 02:55:58 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-10-02 02:55:58 +0000
commit1754a77d402af8c9fccb896e0b0745eb6e591c0b (patch)
tree1e6d81d4188f5ba1cf21c1d40630d2bac4c568ca
parent2739d3040a69228192096ee16373610149a2fb47 (diff)
parentdfd29c531843fb3ba4b7a7d2f94bad07a08bc1b5 (diff)
Merged in iman/update-readyStock (pull request #233)
<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