summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-11-01 02:18:20 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-11-01 02:18:20 +0000
commit7031fd2233cfb32feef5e1911e872f523464c8ba (patch)
tree5ab86bb6ffe3f31144dad0b4154cb96b2856c3e2
parentc933cb57a0dbea8ba062a251f28f0a72eb4bb080 (diff)
parentc0380dd9b5ab6bf6a9538b9fa0c08082095c95fc (diff)
Merged in refund_system (pull request #455)
refudn cancel walaupun udh approved
-rw-r--r--indoteknik_custom/models/refund_sale_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py
index e6547a88..9eae5b32 100644
--- a/indoteknik_custom/models/refund_sale_order.py
+++ b/indoteknik_custom/models/refund_sale_order.py
@@ -989,7 +989,7 @@ class RefundSaleOrder(models.Model):
for rec in self:
if self.env.uid not in allowed_user_ids and not is_fat:
raise UserError("❌ Hanya user yang bersangkutan atau Finance (FAT) yang bisa melakukan penolakan.")
- if rec.status not in ['refund', 'reject']:
+ if rec.status != 'reject':
rec.status = 'reject'
rec.status_payment = 'reject'