summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/dunning_run.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/dunning_run.py b/indoteknik_custom/models/dunning_run.py
index 5a6aebac..eb6f06dc 100644
--- a/indoteknik_custom/models/dunning_run.py
+++ b/indoteknik_custom/models/dunning_run.py
@@ -31,6 +31,7 @@ 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?')
def _compute_grand_total(self):
for record in self:
@@ -149,4 +150,5 @@ class DunningRunLine(models.Model):
total_amt = fields.Float(string='Total Amount')
open_amt = fields.Float(string='Open Amount')
due_date = fields.Date(string='Due Date')
+ payment_term = fields.Many2one('account.payment.term', related='invoice_id.invoice_payment_term_id', string='Payment Term')