summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/letter_receivable.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/letter_receivable.py b/indoteknik_custom/models/letter_receivable.py
index 18485f01..79a4a3e0 100644
--- a/indoteknik_custom/models/letter_receivable.py
+++ b/indoteknik_custom/models/letter_receivable.py
@@ -333,6 +333,9 @@ class SuratPiutang(models.Model):
# Hapus line yang tidak ada lagi di unpaid view
rec.line_ids.filtered(lambda l: l.invoice_id.id not in new_invoice_ids).unlink()
+ rec.message_post(
+ body=f"Line Invoices diperbarui. Total line saat ini: {len(rec.line_ids)}"
+ )
@api.model
def create(self, vals):