diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-05 10:03:45 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-07-05 10:03:45 +0700 |
| commit | 699619cd4b755d5c6b4587733ec6cdfb839c1b8a (patch) | |
| tree | c04e55a093edbe3847609cbc562d89a2521ae1aa | |
| parent | c4412d9bf32894b32e88c1f49f1d64a16dd3148b (diff) | |
bug sla version
| -rw-r--r-- | indoteknik_custom/models/product_sla.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
