summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-05-22 14:35:22 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-05-22 14:35:22 +0700
commitd63a3069a30c944b63d784625f046d3e7363eebd (patch)
treeae9081f23af388a8241e7c9a18909773c61e3ee0
parent1545c0341e36811ad23d4b465e2e5194f7b0162a (diff)
remove manufacturing validation
-rw-r--r--indoteknik_custom/models/manufacturing.py8
1 files 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