summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/product_sla.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/indoteknik_custom/models/product_sla.py b/indoteknik_custom/models/product_sla.py
index 1ef1e0fb..c09c5018 100644
--- a/indoteknik_custom/models/product_sla.py
+++ b/indoteknik_custom/models/product_sla.py
@@ -53,13 +53,8 @@ class ProductSla(models.Model):
qty_available += stock.quantity
qty_available -= 10
- total_stock_moves = len(self.product_variant_id.stock_move_ids)
-
- if total_stock_moves > 0:
- if qty_available > 10:
- self.sla = '1 Hari'
- elif qty_available <= 0:
- self.sla = 'barang mempunyai stock move tetapi tidak ada qty available'
+ if qty_available > 10:
+ self.sla = '1 Hari'
query = [
('product_id', '=', self.product_variant_id.id),