summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-10 18:26:52 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-10 18:26:52 +0700
commitdc2baa117413f3140adf99c8a398da3d7637c3d3 (patch)
tree08774cd6fc6ce926ec2f10fb0f67c01573df228c /indoteknik_custom/models
parent16f8bd52164e8a0d205a0ffad69d0e3d8aa9e82c (diff)
<Miqdad> push
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/gudang_service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/gudang_service.py b/indoteknik_custom/models/gudang_service.py
index 4e3b2c34..4900113f 100644
--- a/indoteknik_custom/models/gudang_service.py
+++ b/indoteknik_custom/models/gudang_service.py
@@ -157,7 +157,7 @@ class GudangService(models.Model):
('res_model', '=', 'gudang.service'),
])
activities.unlink()
- if rec.state == 'done':
+ if rec.state == 'delivered_to_cust':
raise UserError("You cannot cancel a done record")
if not rec.cancel_reason:
raise UserError("Cancel Reason must be filled")