summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-18 17:37:15 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-18 17:37:15 +0700
commitbae2823177d413ecdbdcac8b50fec75dc1c358dd (patch)
tree5299359eeecbf19daf386309cb99de5b6420042f
parent2f9d0c4be0a9b8602b745c4faba73ff132419a77 (diff)
<Miqdad> balikin
-rw-r--r--indoteknik_custom/models/mrp_production.py4
1 files 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':