From 699619cd4b755d5c6b4587733ec6cdfb839c1b8a Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 5 Jul 2023 10:03:45 +0700 Subject: bug sla version --- indoteknik_custom/models/product_sla.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/product_sla.py b/indoteknik_custom/models/product_sla.py index 565c3de0..5cd3bbe2 100644 --- a/indoteknik_custom/models/product_sla.py +++ b/indoteknik_custom/models/product_sla.py @@ -39,6 +39,7 @@ class ProductSla(models.Model): _logger.info(f'Product SLA: {i}/{len(products)}') i += 1 + product.sla_version += 1 if len(product.stock_move_ids) == 0 and qty_available <= 0: continue @@ -91,4 +92,3 @@ class ProductSla(models.Model): self.sla = '4-12 Hari' elif rounded_leadtime >= 11: self.sla = 'Indent' - self.product_variant_id.sla_version += 1 -- cgit v1.2.3