From bae2823177d413ecdbdcac8b50fec75dc1c358dd Mon Sep 17 00:00:00 2001 From: Mqdd Date: Wed, 18 Feb 2026 17:37:15 +0700 Subject: balikin --- indoteknik_custom/models/mrp_production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/mrp_production.py b/indoteknik_custom/models/mrp_production.py index 3d2507dc..02679458 100644 --- a/indoteknik_custom/models/mrp_production.py +++ b/indoteknik_custom/models/mrp_production.py @@ -52,8 +52,8 @@ class MrpProduction(models.Model): result = super(MrpProduction, self).button_mark_done() for record in self: - # if len(record.check_bom_product_lines) < 1: - # raise UserError("Check Product Tidak Boleh Kosong") + if len(record.check_bom_product_lines) < 1: + raise UserError("Check Product Tidak Boleh Kosong") if not record.sale_order: raise UserError("Sale Order Tidak Boleh Kosong") if record.sale_order and record.state == 'confirmed': -- cgit v1.2.3