diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-15 15:46:50 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-15 15:46:50 +0700 |
| commit | 6026ac42425658a2dc1a1c1e34e79a6c021a2e24 (patch) | |
| tree | d660011e84c894c0a9b8975a9a653ef1e87a3a07 /indoteknik_custom/models/advance_payment_request.py | |
| parent | 96b727403891f0cabcc65c9147fb5bd7ed9b33f2 (diff) | |
| parent | fe5b09c1aa98723a3e0a3cf8174d6bc688c21bae (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into magento-solr-v1
Diffstat (limited to 'indoteknik_custom/models/advance_payment_request.py')
| -rw-r--r-- | indoteknik_custom/models/advance_payment_request.py | 2 |
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/>" |
