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/__manifest__.py | 1 + indoteknik_custom/models/manufacturing.py | 4 ++-- indoteknik_custom/views/landedcost.xml | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 indoteknik_custom/views/landedcost.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index e1c2ec7b..eaa5390a 100755 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -75,6 +75,7 @@ 'views/product_product.xml', 'views/brand_vendor.xml', 'views/requisition.xml', + 'views/landedcost.xml', 'report/report.xml', 'report/report_banner_banner.xml', 'report/report_banner_banner2.xml', 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') diff --git a/indoteknik_custom/views/landedcost.xml b/indoteknik_custom/views/landedcost.xml new file mode 100644 index 00000000..4736941a --- /dev/null +++ b/indoteknik_custom/views/landedcost.xml @@ -0,0 +1,15 @@ + + + + + Landed Cost + stock.landed.cost + + + + + + + + + \ No newline at end of file -- cgit v1.2.3