summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-15 14:36:40 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-15 14:36:40 +0700
commit6c5e3f59d14efe691e581fb7524a013737215fb3 (patch)
treeb4c2461da3ff95dea7e976ff53f36c2096a40ab1
parent346127148c6d73ff27de5e3727b43a29ca8b119f (diff)
(andri) add cancel pada status payment reimburse
-rw-r--r--indoteknik_custom/models/advance_payment_request.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/advance_payment_request.py b/indoteknik_custom/models/advance_payment_request.py
index d0805598..ed0b0809 100644
--- a/indoteknik_custom/models/advance_payment_request.py
+++ b/indoteknik_custom/models/advance_payment_request.py
@@ -62,6 +62,7 @@ class AdvancePaymentRequest(models.Model):
status_pay_down_payment = fields.Selection([
('pending', 'Pending'),
('payment', 'Payment'),
+ ('cancel','Cancel')
], string='Status Pembayaran', default='pending', tracking=3)
name_approval_departement = fields.Char(string='Approval Departement')
@@ -853,6 +854,7 @@ class AdvancePaymentCancelWizard(models.TransientModel):
raise UserError("Tidak bisa melakukan cancel karena Jurnal (Move ID) sudah terbentuk.")
request.write({'status': 'cancel'})
+ request.write({'status_pay_down_payment': 'cancel'})
request.message_post(
body=f"Pengajuan telah <b>DIBATALKAN</b> oleh {self.env.user.name}.<br/>"