diff options
| author | AndriFP <113114423+andrifp@users.noreply.github.com> | 2025-09-15 15:31:31 +0700 |
|---|---|---|
| committer | AndriFP <113114423+andrifp@users.noreply.github.com> | 2025-09-15 15:31:31 +0700 |
| commit | 60ef4aa56889985028a75cc927db80c36bc21338 (patch) | |
| tree | d01fa0857906599e2433ec057ff0788033f40070 | |
| parent | 570087805ec46b8af7651187cfcf0ecef2733912 (diff) | |
(andri) add message post after refresh inv
| -rw-r--r-- | indoteknik_custom/models/letter_receivable.py | 3 | ||||
| -rw-r--r-- | indoteknik_custom/views/letter_receivable.xml | 2 |
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" |
