summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-07-25 11:44:06 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-07-25 11:44:06 +0700
commit9be22926964e36580ab51e5d30858c4d89071231 (patch)
treea2f808e5e010703c4a3b0c7f51cd3918d10ed78b
parent360b62be63b80a0ed7df9845c72f3549087ac02e (diff)
<miqdad> typo
-rw-r--r--indoteknik_custom/models/tukar_guling_po.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py
index 2dc11efb..14f2cc96 100644
--- a/indoteknik_custom/models/tukar_guling_po.py
+++ b/indoteknik_custom/models/tukar_guling_po.py
@@ -629,7 +629,7 @@ class TukarGulingLinePO(models.Model):
@api.constrains('product_uom_qty')
def _check_qty_change_allowed(self):
for rec in self:
- if rec.tukar_guling_id and rec.tukar_guling_po_id.state not in ['draft', 'cancel']:
+ if rec.tukar_guling_po_id and rec.tukar_guling_po_id.state not in ['draft', 'cancel']:
raise ValidationError("Tidak bisa mengubah Quantity karena status dokumen bukan Draft atau Cancel.")
def unlink(self):