From d63a3069a30c944b63d784625f046d3e7363eebd Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 22 May 2023 14:35:22 +0700 Subject: remove manufacturing validation --- indoteknik_custom/models/manufacturing.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/indoteknik_custom/models/manufacturing.py b/indoteknik_custom/models/manufacturing.py index e6e6592c..4dbf2605 100644 --- a/indoteknik_custom/models/manufacturing.py +++ b/indoteknik_custom/models/manufacturing.py @@ -11,10 +11,10 @@ class Manufacturing(models.Model): if self._name != 'mrp.production': return super(Manufacturing, self).action_confirm() - if self.location_src_id.id != 75: - raise UserError('Component Location hanya bisa di AS/Stock') - elif self.location_dest_id.id != 75: - raise UserError('Finished Product Location hanya bisa di AS/Stock') + # if self.location_src_id.id != 75: + # raise UserError('Component Location hanya bisa di AS/Stock') + # elif self.location_dest_id.id != 75: + # raise UserError('Finished Product Location hanya bisa di AS/Stock') result = super(Manufacturing, self).action_confirm() return result -- cgit v1.2.3