From 67294c9cacdf2e4da1348c41cb23a02d50aea374 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 2 Oct 2025 15:38:34 +0700 Subject: fixb ug --- indoteknik_custom/models/mrp_production.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/mrp_production.py b/indoteknik_custom/models/mrp_production.py index 4ebfa244..30956082 100644 --- a/indoteknik_custom/models/mrp_production.py +++ b/indoteknik_custom/models/mrp_production.py @@ -24,8 +24,9 @@ class MrpProduction(models.Model): def action_cancel(self): for production in self: moves_with_forecast = production.move_raw_ids.filtered( - lambda m: m.forecast_availability > 0 + lambda m: m.reserved_availability > 0 ) + if moves_with_forecast: # bikin list produk per baris product_list = "\n".join( -- cgit v1.2.3