diff options
| -rw-r--r-- | indoteknik_custom/models/letter_receivable.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/report/report_tutup_tempo.xml | 10 | ||||
| -rw-r--r-- | indoteknik_custom/views/letter_receivable.xml | 1 |
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" |
