diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-10-02 10:40:24 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-10-02 10:40:24 +0700 |
| commit | 705f51eed8a817fe6ea3ef514402786d25f7c356 (patch) | |
| tree | b756a2ed1a1ef106739e935ce0ac47df12df473a /indoteknik_custom/models/stock_picking.py | |
| parent | 37ee561ff633776ef984d4d9e441981aecbca762 (diff) | |
| parent | 1754a77d402af8c9fccb896e0b0745eb6e591c0b (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.py | 4 |
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 |
