summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 12e8ecba..5e38b544 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -32,7 +32,6 @@ class AccountMove(models.Model):
new_due_date = fields.Date(string='New Due')
counter = fields.Integer(string="Counter", default=0)
cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre')
- analytic_account_ids = fields.Many2many('account.analytic.account', string='Analytic Account')
due_line = fields.One2many('due.extension.line', 'invoice_id', compute='_compute_due_line', string='Due Extension Lines')
no_faktur_pajak = fields.Char(string='No Faktur Pajak')
date_completed = fields.Datetime(string='Date Completed')
@@ -127,8 +126,8 @@ class AccountMove(models.Model):
amount = item.get('amount', 0.0)
date = item.get('date') or item.get('payment_date') or ''
formatted_amount = formatLang(self.env, amount, currency_obj=rec.currency_id)
- lines.append(f"<i>Paid on {date}</i> - {formatted_amount}")
- summary = "\n".join(lines) if lines else (data.get('title', '') or "")
+ lines.append(f"<li><i>Paid on {date}</i> - {formatted_amount}</li>")
+ summary = f"<ul>{''.join(lines)}</ul>" if lines else (data.get('title', '') or "")
except Exception:
summary = ""
rec.payment_info = summary