summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-09-25 15:35:43 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-09-25 15:35:43 +0700
commit31a22f2f26b29f91bd43ea48ce84e8dc9aaf3c12 (patch)
tree1799e347c2aaf1a2794dc78a5cce0c98d7c6900f
parent16147def7eb5765ac0d1e0870efe70176a7a618c (diff)
fix
-rw-r--r--indoteknik_custom/models/letter_receivable.py2
-rw-r--r--indoteknik_custom/report/report_tutup_tempo.xml10
-rw-r--r--indoteknik_custom/views/letter_receivable.xml1
3 files changed, 2 insertions, 11 deletions
diff --git a/indoteknik_custom/models/letter_receivable.py b/indoteknik_custom/models/letter_receivable.py
index bfa1e966..ffe14491 100644
--- a/indoteknik_custom/models/letter_receivable.py
+++ b/indoteknik_custom/models/letter_receivable.py
@@ -375,7 +375,7 @@ class SuratPiutang(models.Model):
)
_logger.info(
- f"Surat Piutang {self.name} terkirim ke {self.tujuan_email} "
+ f"{self.name} terkirim ke {self.tujuan_email} "
f"({self.partner_id.name}), total {len(selected_lines)} invoice."
)
diff --git a/indoteknik_custom/report/report_tutup_tempo.xml b/indoteknik_custom/report/report_tutup_tempo.xml
index 38208be9..6c9cfc95 100644
--- a/indoteknik_custom/report/report_tutup_tempo.xml
+++ b/indoteknik_custom/report/report_tutup_tempo.xml
@@ -1,16 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
- <record id="action_print_surat_piutang_server" model="ir.actions.server">
- <field name="name">Cetak Surat</field>
- <field name="model_id" ref="indoteknik_custom.model_surat_piutang"/>
- <field name="binding_model_id" ref="indoteknik_custom.model_surat_piutang"/>
- <field name="binding_view_types">form</field>
- <field name="state">code</field>
- <field name="code">
- action = records.action_print()
- </field>
- </record>
<record id="action_report_surat_tutup_tempo" model="ir.actions.report">
<field name="name">Surat Penutupan Tempo</field>
diff --git a/indoteknik_custom/views/letter_receivable.xml b/indoteknik_custom/views/letter_receivable.xml
index 4810909f..7f946c04 100644
--- a/indoteknik_custom/views/letter_receivable.xml
+++ b/indoteknik_custom/views/letter_receivable.xml
@@ -26,6 +26,7 @@
<form string="Surat Piutang">
<header>
<field name="state" widget="statusbar" statusbar_visible="draft,waiting_approval_sales,waiting_approval_pimpinan,sent"/>
+ <button name="action_print" string="Print" type="object" />
<button name="action_approve"
type="object"
string="Approve"