diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-04 15:23:35 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-04 15:23:35 +0700 |
| commit | 9e783f7e3c356eb53f3afe10601a4eb9d0eeecdc (patch) | |
| tree | 69a174e31409ae58cc0a83679efc91c6dbef6ff0 /indoteknik_custom/models | |
| parent | 1d58c7888d95793a4f393c9520b9d89a04f69c08 (diff) | |
(andri) fix template
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 684f875d..b9315c43 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -119,7 +119,7 @@ class AccountMove(models.Model): today + timedelta(days=7), ] - partner = self.env['res.partner'].search([('name', 'ilike', 'SINAR SUKSES MANDIRI')], limit=1) + partner = self.env['res.partner'].search([('name', 'ilike', 'DIRGANTARA YUDHA ARTHA')], limit=1) if not partner: _logger.info("Partner tidak ditemukan.") return @@ -172,17 +172,17 @@ class AccountMove(models.Model): days_to_due = (inv.invoice_date_due - today).days if inv.invoice_date_due else 0 invoice_table_rows += f""" <tr> + <td>{inv.partner_id.name}</td> + <td>{inv.purchase_order_id.name or '-'}</td> <td>{inv.name}</td> <td>{fields.Date.to_string(inv.invoice_date) or '-'}</td> <td>{fields.Date.to_string(inv.invoice_date_due) or '-'}</td> - <td>{days_to_due}</td> <td>{formatLang(self.env, inv.amount_total, currency_obj=inv.currency_id)}</td> <td>{inv.invoice_payment_term_id.name or '-'}</td> - <td>{inv.purchase_order_id.name or '-'}</td> - <td>{inv.ref or '-'}</td> + <td>{days_to_due}</td> </tr> """ - + dadada = self.partner_id.name # Tentukan pesan berdasarkan sisa hari days_to_due_message = "" closing_message = "" |
