summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-09-09 11:04:35 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-09-09 11:04:35 +0700
commit894d4806067463fceaa2c6e6a67882e8f0bed974 (patch)
tree473dc5c2103019d8d2c4c128a46a29dbd30eb0c4
parent49a9bc775e25a61d8a463c89f2d749461d26f108 (diff)
remove product sementara validation
-rwxr-xr-xindoteknik_custom/models/product_template.py6
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)