summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-10-02 15:38:34 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-10-02 15:38:34 +0700
commit67294c9cacdf2e4da1348c41cb23a02d50aea374 (patch)
tree8634f77fa21980465dc2c1a88845abb749a8e6f1
parent6baf4d55e6dbaef2f5bd270a18effa55a821677a (diff)
fixb ug
-rw-r--r--indoteknik_custom/models/mrp_production.py3
1 files changed, 2 insertions, 1 deletions
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(