summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-08-09 10:32:32 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-08-09 10:32:32 +0700
commit3ef9d136bd238464de7ff0a224b1a68a9b7bb1f3 (patch)
tree4a26ad5ec0ad6700b061e0ebfb189e89d5b2cf95 /indoteknik_custom/views
parent30eb623bace6b5ba9a1e275c7bdf70fc5920a583 (diff)
add new condition email po
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/mail_template_po.xml16
1 files changed, 9 insertions, 7 deletions
diff --git a/indoteknik_custom/views/mail_template_po.xml b/indoteknik_custom/views/mail_template_po.xml
index 8eb72e12..77c21837 100644
--- a/indoteknik_custom/views/mail_template_po.xml
+++ b/indoteknik_custom/views/mail_template_po.xml
@@ -6,11 +6,11 @@
<field name="model_id" ref="model_purchase_order" />
<field name="subject">Your PO ${object.name}</field>
<field name="email_from"></field>
- <field name="email_to">azkan4elll@gmail.com</field>
+ <field name="email_to">darren@indoteknik.co.id</field>
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0"
style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;">
- <tr>
+ <tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590"
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
@@ -51,11 +51,13 @@
<br/><br/>
Berikut adalah rincian PO:
% for line in object.order_line:
- <ul>
- <li>Nama Produk: ${line.product_id.name}</li>
- <li>Harga Unit dalam PO: ${line.price_unit}</li>
- <li>Harga Unit dalam Purchase Pricelist: ${line.price_vendor}</li>
- </ul>
+ % if line.price_vendor != 0 and line.price_unit != line.price_vendor
+ <ul>
+ <li>Nama Produk: ${line.product_id.name}</li>
+ <li>Harga Unit dalam PO: ${line.price_unit}</li>
+ <li>Harga Unit dalam Purchase Pricelist: ${line.price_vendor}</li>
+ </ul>
+ % endif
% endfor
Silahkan periksa dan lakukan koreksi jika diperlukan.
<br/><br/>