summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-02 10:40:24 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-02 10:40:24 +0700
commit705f51eed8a817fe6ea3ef514402786d25f7c356 (patch)
treeb756a2ed1a1ef106739e935ce0ac47df12df473a /indoteknik_custom/models/stock_picking.py
parent37ee561ff633776ef984d4d9e441981aecbca762 (diff)
parent1754a77d402af8c9fccb896e0b0745eb6e591c0b (diff)
Merge branch 'production' into iman/switch-account
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-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