From d00a277cf3144100b2ca4b8ee640a23776537349 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Fri, 1 Aug 2025 08:42:14 +0700 Subject: (andri) add template mail for reminder PUM --- indoteknik_custom/__manifest__.py | 1 + indoteknik_custom/models/down_payment.py | 3 + indoteknik_custom/views/mail_template_pum.xml | 80 +++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 indoteknik_custom/views/mail_template_pum.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index e2f7659c..109cc90a 100755 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -98,6 +98,7 @@ 'views/mail_template_efaktur.xml', 'views/mail_template_invoice_po.xml', 'views/mail_template_invoice_reminder.xml', + 'views/mail_template_pum.xml', 'views/price_group.xml', 'views/mrp_production.xml', 'views/apache_solr.xml', diff --git a/indoteknik_custom/models/down_payment.py b/indoteknik_custom/models/down_payment.py index 7889ac53..946bd792 100644 --- a/indoteknik_custom/models/down_payment.py +++ b/indoteknik_custom/models/down_payment.py @@ -72,6 +72,8 @@ class DownPayment(models.Model): name_approval_departement = fields.Char(string='Approval Departement', tracking=True) name_approval_ap = fields.Char(string='Approval AP', tracking=True) + email_ap = fields.Char(string = 'Email AP') + email_user = fields.Char(string = 'Email User', default=lambda self: self.env.user.email) name_approval_pimpinan = fields.Char(string='Approval Pimpinan', tracking=True) date_approved_department = fields.Datetime(string="Date Approved Department") @@ -257,6 +259,7 @@ class DownPayment(models.Model): if self.env.user.id not in ap_user_ids: raise UserError("Hanya AP yang berhak menyetujui tahap ini.") rec.name_approval_ap = self.env.user.name + rec.email_ap = self.env.user.email rec.date_approved_ap = now rec.position_ap = 'Finance AP' rec.status = 'pengajuan3' diff --git a/indoteknik_custom/views/mail_template_pum.xml b/indoteknik_custom/views/mail_template_pum.xml new file mode 100644 index 00000000..85f5de2a --- /dev/null +++ b/indoteknik_custom/views/mail_template_pum.xml @@ -0,0 +1,80 @@ + + + + + + + Reminder PUM: Hari Ini + + Reminder Realisasi PUM - ${object.number} + ${object.email_ap} + ${object.email_user} + +
+

Dengan Hormat Bpk/Ibu PIC,

+ +

+ Berikut terlampir pengajuan PUM ${object.number} sebesar + Rp ${format_amount(object.amount, 'id_ID')} dari PT. INDOTEKNIK DOTCOM GEMILANG + pada tanggal ${format_date(object.date_submit, 'd MMMM yyyy')}. +

+ +

+ Mohon segera realisasikan PUM tersebut. Batas waktu realisasi adalah + 7 hari setelah kembali ke kantor. +

+ +

Email ini dikirim otomatis, abaikan bila sudah melakukan realisasi.

+ +

+

+ Dept. Finance
+ PT. INDOTEKNIK DOTCOM GEMILANG
+ Indoteknik
+ +62-857-1697-0374 | + finance@indoteknik.co.id +

+
+
+ +
+ + + + Reminder PUM: H-2 + + Reminder Realisasi PUM (H-2) - ${object.number} + ${object.email_ap} + ${object.email_user} + +
+

Dengan Hormat Bpk/Ibu PIC,

+ +

+ Berikut terlampir pengajuan PUM ${object.number} sebesar + Rp ${format_amount(object.amount, 'id_ID')} dari PT. INDOTEKNIK DOTCOM GEMILANG + pada tanggal ${format_date(object.date_submit, 'd MMMM yyyy')}. +

+ +

+ Mohon segera realisasikan PUM tersebut. Batas waktu tersisa + 2 hari lagi. +

+ +

Email ini dikirim otomatis, abaikan bila sudah melakukan realisasi.

+ +

+

+ Dept. Finance
+ PT. INDOTEKNIK DOTCOM GEMILANG
+ Indoteknik
+ +62-857-1697-0374 | + finance@indoteknik.co.id +

+
+
+ +
+ +
+
-- cgit v1.2.3