From eecd16d10dd20df13f5cb6c70c5e1199b3080527 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 4 Jul 2023 17:05:05 +0700 Subject: change state picking_id product --- 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 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=[] -- cgit v1.2.3