diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-18 17:37:15 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-18 17:37:15 +0700 |
| commit | bae2823177d413ecdbdcac8b50fec75dc1c358dd (patch) | |
| tree | 5299359eeecbf19daf386309cb99de5b6420042f | |
| parent | 2f9d0c4be0a9b8602b745c4faba73ff132419a77 (diff) | |
<Miqdad> balikin
| -rw-r--r-- | indoteknik_custom/models/mrp_production.py | 4 |
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': |
