From f25cdb1a793740a91d9f5813b80da6bd0308961e Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 22 Jul 2024 10:22:09 +0700 Subject: add new email template and add email finance, sales on contact --- indoteknik_custom/__manifest__.py | 1 + indoteknik_custom/models/res_partner.py | 2 ++ .../views/mail_template_invoice_po.xml | 33 ++++++++++++++++++++++ indoteknik_custom/views/res_partner.xml | 2 ++ 4 files changed, 38 insertions(+) create mode 100644 indoteknik_custom/views/mail_template_invoice_po.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index 724796c0..6848ca7c 100755 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -93,6 +93,7 @@ 'views/product_attribute_value.xml', 'views/mail_template_po.xml', 'views/mail_template_efaktur.xml', + 'views/mail_template_invoice_po.xml', 'views/price_group.xml', 'views/mrp_production.xml', 'views/apache_solr.xml', diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py index ea06854d..19699aab 100644 --- a/indoteknik_custom/models/res_partner.py +++ b/indoteknik_custom/models/res_partner.py @@ -40,6 +40,8 @@ class ResPartner(models.Model): ('PNR', 'Pareto Non Repeating'), ('NP', 'Non Pareto') ]) + email_finance = fields.Char(string='Email Finance') + email_sales = fields.Char(string='Email Sales') user_payment_terms_sales = fields.Many2one('res.users', string='Users Update Payment Terms') date_payment_terms_sales = fields.Datetime(string='Date Update Payment Terms') diff --git a/indoteknik_custom/views/mail_template_invoice_po.xml b/indoteknik_custom/views/mail_template_invoice_po.xml new file mode 100644 index 00000000..00ced360 --- /dev/null +++ b/indoteknik_custom/views/mail_template_invoice_po.xml @@ -0,0 +1,33 @@ + + + + + Invoice: Send mail Invoice PO document + + Your Invoice ${object.name} + pajak@indoteknik.co.id + pajak@indoteknik.co.id + sales@indoteknik.com, pajak@indoteknik.co.id + ${object.partner_id.email|safe} + +

Dengan Hormat Bpk/Ibu ${object.partner_id.name},

+

Berikut terlampir pesanan pembelian ${object.name} sebesar Rp${object.amount_total} dari PT. INDOTEKNIK DOTCOM GEMILANG.

+

Barang telah diterima pada tanggal ${object.picking_ids.date_done}.

+

Tolong dibantu kirimkan softcopy invoice, surat jalan, dan faktur pajak atas PO terlampir dengan membalas email ini.

+

Dan kirimkan dokumen asli yang lengkap ke alamat :

+

+ PT. INDOTEKNIK DOTCOM GEMILANG
+ UP : FINANCE (021-2933-8828)
+ Gedung Altama Building : Jl. Bandengan Utara 85A No.8-9, RT.3/RW.16,
+ Penjaringan, Kec. Penjaringan, Jakarta Utara, DKI Jakarta 14440 +

+

Terima kasih.

+

Best Regards,
+ Dept. Finance
+ PT. INDOTEKNIK DOTCOM GEMILANG

+
+ + +
+
+
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index fd8c8202..b928b046 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -36,6 +36,8 @@ + + -- cgit v1.2.3