diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-09-09 11:04:35 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-09-09 11:04:35 +0700 |
| commit | 894d4806067463fceaa2c6e6a67882e8f0bed974 (patch) | |
| tree | 473dc5c2103019d8d2c4c128a46a29dbd30eb0c4 | |
| parent | 49a9bc775e25a61d8a463c89f2d749461d26f108 (diff) | |
remove product sementara validation
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index e6778758..000ee3bf 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -338,9 +338,9 @@ class ProductTemplate(models.Model): return values def write(self, vals): - for rec in self: - if rec.id == 224484: - raise UserError('Tidak dapat mengubah produk sementara') + # for rec in self: + # if rec.id == 224484: + # raise UserError('Tidak dapat mengubah produk sementara') return super(ProductTemplate, self).write(vals) |
