summaryrefslogtreecommitdiff
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
parent570087805ec46b8af7651187cfcf0ecef2733912 (diff)
(andri) add message post after refresh inv
-rw-r--r--indoteknik_custom/models/letter_receivable.py3
-rw-r--r--indoteknik_custom/views/letter_receivable.xml2
2 files changed, 4 insertions, 1 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):
diff --git a/indoteknik_custom/views/letter_receivable.xml b/indoteknik_custom/views/letter_receivable.xml
index ad1f6281..3a7c2c65 100644
--- a/indoteknik_custom/views/letter_receivable.xml
+++ b/indoteknik_custom/views/letter_receivable.xml
@@ -33,7 +33,7 @@
role="alert"
style="height: 40px; margin-bottom:0px;"
attrs="{'invisible':[('state', '!=', 'draft')]}">
- Selamat Datang di form Pengajuan Surat Piutang, Pastikan data sudah benar sebelum mengajukan approval ke Pimpinan.
+ Selamat Datang di form Pengajuan Surat Piutang, Pastikan data sudah benar sebelum mengajukan approval.
</div>
<div class="alert alert-info"
role="alert"