diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-11-01 02:18:20 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-11-01 02:18:20 +0000 |
| commit | 7031fd2233cfb32feef5e1911e872f523464c8ba (patch) | |
| tree | 5ab86bb6ffe3f31144dad0b4154cb96b2856c3e2 | |
| parent | c933cb57a0dbea8ba062a251f28f0a72eb4bb080 (diff) | |
| parent | c0380dd9b5ab6bf6a9538b9fa0c08082095c95fc (diff) | |
Merged in refund_system (pull request #455)
refudn cancel walaupun udh approved
| -rw-r--r-- | indoteknik_custom/models/refund_sale_order.py | 2 |
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' |
