summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/dunning_run.py
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-09-10 18:34:49 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-09-10 18:34:49 +0700
commite276a3bbf0a2726cbfa6bb5606d2dfbfe1e03143 (patch)
treebc0651c9aeb5f5505c788a433baebdcfe8972fe9 /indoteknik_custom/models/dunning_run.py
parent8aceb84b2cf029308903b39bfe139a05ea8f73f6 (diff)
<Miqdad> Remove tanggal bayar and is paid
Diffstat (limited to 'indoteknik_custom/models/dunning_run.py')
-rw-r--r--indoteknik_custom/models/dunning_run.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/indoteknik_custom/models/dunning_run.py b/indoteknik_custom/models/dunning_run.py
index 557eacef..9feea1d1 100644
--- a/indoteknik_custom/models/dunning_run.py
+++ b/indoteknik_custom/models/dunning_run.py
@@ -31,18 +31,6 @@ class DunningRun(models.Model):
description = fields.Char(string='Description')
comment = fields.Char(string='Comment')
grand_total = fields.Float(string='Grand Total', compute="_compute_grand_total")
- is_paid = fields.Boolean(string='Sudah Bayar?')
- tanggal_pembayaran = fields.Date(
- string='Tanggal Pembayaran',
- compute="_compute_tanggal_pembayaran",
- readonly=True,
- )
-
- @api.depends('is_paid')
- def _compute_tanggal_pembayaran(self):
- today = fields.Date.context_today(self)
- for rec in self:
- rec.tanggal_pembayaran = today if rec.is_paid else False
def _compute_grand_total(self):
for record in self: