summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-09-01 16:05:52 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-09-01 16:05:52 +0700
commit1330742f90b32c6dd214925ad893696cfae5ef38 (patch)
tree90953e163fe9fdb3cc145bbc9c711c018e4c5afb
parentd839d9b4a120a2c6ab4a0b9044d578bf28cd4d47 (diff)
(andri) add string due date
-rw-r--r--indoteknik_custom/models/unpaid_invoice_view.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/unpaid_invoice_view.py b/indoteknik_custom/models/unpaid_invoice_view.py
index 77007102..517d078b 100644
--- a/indoteknik_custom/models/unpaid_invoice_view.py
+++ b/indoteknik_custom/models/unpaid_invoice_view.py
@@ -5,6 +5,7 @@ class UnpaidInvoiceView(models.Model):
_description = 'Unpaid Invoices Monitoring'
_auto = False
_rec_name = 'partner_name'
+ _order = 'partner_name, new_invoice_day_to_due DESC'
partner_id = fields.Many2one('res.partner', string='Partner')
partner_name = fields.Char(string='Partner Name')
@@ -13,7 +14,7 @@ class UnpaidInvoiceView(models.Model):
invoice_id = fields.Many2one('account.move', string='Invoice')
invoice_number = fields.Char(string='Invoice Number')
invoice_date = fields.Date()
- invoice_date_due = fields.Date()
+ invoice_date_due = fields.Date(string='Due Date')
currency_id = fields.Many2one('res.currency', string='Currency')
amount_total = fields.Monetary(string='Total', currency_field='currency_id')
amount_residual = fields.Monetary(string='Residual', currency_field='currency_id')