diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-05-22 14:35:22 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-05-22 14:35:22 +0700 |
| commit | d63a3069a30c944b63d784625f046d3e7363eebd (patch) | |
| tree | ae9081f23af388a8241e7c9a18909773c61e3ee0 | |
| parent | 1545c0341e36811ad23d4b465e2e5194f7b0162a (diff) | |
remove manufacturing validation
| -rw-r--r-- | indoteknik_custom/models/manufacturing.py | 8 |
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 |
