summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-07-24 11:10:10 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-07-24 11:10:10 +0700
commit8720938222472b6e4f217229881067d5b0b126c0 (patch)
treefb1ab792c3624266c15743445497ee3192c73a9a
parent365bf9fd1d6cff481c24342db44ef9aeffdd7d80 (diff)
<hafid> editable field
-rw-r--r--indoteknik_custom/models/refund_sale_order.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/indoteknik_custom/models/refund_sale_order.py b/indoteknik_custom/models/refund_sale_order.py
index e3a0146d..11bfd07f 100644
--- a/indoteknik_custom/models/refund_sale_order.py
+++ b/indoteknik_custom/models/refund_sale_order.py
@@ -433,14 +433,6 @@ class RefundSaleOrder(models.Model):
pengurangan = rec.total_invoice + rec.ongkir
refund = rec.uang_masuk - pengurangan
rec.amount_refund = refund if refund > 0 else 0.0
-
- if rec.uang_masuk and rec.uang_masuk <= pengurangan:
- return {
- 'warning': {
- 'title': 'Uang Masuk Kurang',
- 'message': 'Uang masuk harus lebih besar dari total invoice + ongkir untuk dapat melakukan refund.'
- }
- }
@api.model
def default_get(self, fields_list):