diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-09-10 12:22:07 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-09-10 12:22:07 +0700 |
| commit | e3c9d12ca2356493bb75c7362d0da54280889828 (patch) | |
| tree | 6fca3f1be5df86a92da088606a264374a4ef0e0e | |
| parent | 1767a569e88e8254fdbefdfaf6be6045f1f5235f (diff) | |
<miqdad> dunning done
| -rw-r--r-- | indoteknik_custom/models/dunning_run.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/dunning_run.xml | 2 |
2 files changed, 4 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') diff --git a/indoteknik_custom/views/dunning_run.xml b/indoteknik_custom/views/dunning_run.xml index f624c42e..7623666b 100644 --- a/indoteknik_custom/views/dunning_run.xml +++ b/indoteknik_custom/views/dunning_run.xml @@ -25,6 +25,7 @@ <field name="arch" type="xml"> <tree> <field name="partner_id"/> + <field name="payment_term"/> <field name="invoice_id"/> <field name="date_invoice"/> <field name="efaktur_id"/> @@ -74,6 +75,7 @@ <field name="date_terima_tukar_faktur"/> <field name="shipper_faktur_id"/> <field name="grand_total"/> + <field name="is_paid"/> </group> </group> <notebook> |
