summaryrefslogtreecommitdiff
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
parent8aceb84b2cf029308903b39bfe139a05ea8f73f6 (diff)
<Miqdad> Remove tanggal bayar and is paid
-rw-r--r--indoteknik_custom/models/dunning_run.py12
-rw-r--r--indoteknik_custom/views/dunning_run.xml3
2 files changed, 1 insertions, 14 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:
diff --git a/indoteknik_custom/views/dunning_run.xml b/indoteknik_custom/views/dunning_run.xml
index 7c5f4af6..fbd9dc72 100644
--- a/indoteknik_custom/views/dunning_run.xml
+++ b/indoteknik_custom/views/dunning_run.xml
@@ -75,8 +75,7 @@
<field name="date_terima_tukar_faktur"/>
<field name="shipper_faktur_id"/>
<field name="grand_total"/>
- <field name="is_paid"/>
- <field name="tanggal_pembayaran"/>
+<!-- <field name="tanggal_pembayaran"/>-->
</group>
</group>
<notebook>