summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorAndriFP <113114423+andrifp@users.noreply.github.com>2025-09-15 15:31:31 +0700
committerAndriFP <113114423+andrifp@users.noreply.github.com>2025-09-15 15:31:31 +0700
commit60ef4aa56889985028a75cc927db80c36bc21338 (patch)
treed01fa0857906599e2433ec057ff0788033f40070 /indoteknik_custom/models
parent570087805ec46b8af7651187cfcf0ecef2733912 (diff)
(andri) add message post after refresh inv
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):