From 48474fcef12509f736be0cb6af47618601dbfe61 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 7 Jun 2023 10:29:19 +0700 Subject: remove useless validation in manufacturing order and custom landed cost --- indoteknik_custom/models/manufacturing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_custom/models') diff --git a/indoteknik_custom/models/manufacturing.py b/indoteknik_custom/models/manufacturing.py index 15756e44..2455a117 100644 --- a/indoteknik_custom/models/manufacturing.py +++ b/indoteknik_custom/models/manufacturing.py @@ -25,8 +25,8 @@ class Manufacturing(models.Model): return super(Manufacturing, self).button_mark_done() for line in self.move_raw_ids: - if line.quantity_done > 0 and line.quantity_done != self.product_uom_qty: - raise UserError('Qty Consume per Line tidak sama dengan Qty to Produce') + # if line.quantity_done > 0 and line.quantity_done != self.product_uom_qty: + # raise UserError('Qty Consume per Line tidak sama dengan Qty to Produce') if line.forecast_availability != line.product_uom_qty: raise UserError('Qty Reserved belum sesuai dengan yang seharusnya') -- cgit v1.2.3