summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-07-04 17:05:05 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-07-04 17:05:05 +0700
commiteecd16d10dd20df13f5cb6c70c5e1199b3080527 (patch)
tree96f49b349609d11bc58b1d1f34c363a202ee27ac
parent6eaf93b898640ffa752f9addf109a293aa7ad776 (diff)
change state picking_id product
-rw-r--r--indoteknik_custom/models/product_sla.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_sla.py b/indoteknik_custom/models/product_sla.py
index afc2a5af..73f6dcbc 100644
--- a/indoteknik_custom/models/product_sla.py
+++ b/indoteknik_custom/models/product_sla.py
@@ -64,7 +64,7 @@ class ProductSla(models.Model):
('product_id', '=', sla.product_variant_id.id),
('picking_id', '!=', False),
('picking_id.location_id', '=', 57),
- ('picking_id.state', 'in', ['done','assigned'])
+ ('picking_id.state', 'not in', ['cancel'])
]
picking = self.env['stock.move.line'].search(query)
leadtimes=[]