summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-09-15 15:35:36 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-09-15 15:35:36 +0700
commitf1af7fc1ccafea19653c03c272c2c64cd9c97218 (patch)
tree0029ed214820eac8b0dae91fb580729aecb81011
parenteca46bd7ed2df2bf1552ffdbd72a84345c77de81 (diff)
push
-rw-r--r--indoteknik_custom/report/purchase_report.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml
index 80112947..4e1e7afb 100644
--- a/indoteknik_custom/report/purchase_report.xml
+++ b/indoteknik_custom/report/purchase_report.xml
@@ -80,6 +80,7 @@
<!-- HEADER -->
<tr style="background:#e53935; color:white;">
<th style="border:1px solid #ccc; padding:8px; text-align:left;">No. &amp; Description</th>
+ <th style="border:1px solid #ccc; padding:8px; text-align:left;">Image</th>
<th style="border:1px solid #ccc; padding:8px; text-align:center;">Quantity</th>
<th style="border:1px solid #ccc; padding:8px; text-align:center;">Unit Price</th>
<th style="border:1px solid #ccc; padding:8px; text-align:center;">Taxes</th>
@@ -92,11 +93,6 @@
<!-- NO & DESCRIPTION + IMAGE -->
<td style="border:1px solid #ccc; padding: 6px; display:flex; align-items:center; gap:10px;">
- <!-- GAMBAR PRODUK -->
- <t t-if="line.image_small">
- <img t-att-src="'data:image/png;base64,%s' % line.image_small"
- style="width:40px; height:40px; object-fit:contain; border:1px solid #ddd; border-radius:6px; background:#fff;"/>
- </t>
<t t-if="not line.image_small">
<div style="width:40px; height:40px; background:#f5f5f5; border:1px solid #ddd; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#999; font-size:10px;">
N/A
@@ -111,6 +107,12 @@
</div>
</td>
+ <t t-if="line.image_small">
+ <td style="border:1px solid #ccc; padding:6px; text-align:center;">
+ <img t-att-src="image_data_uri(line.image_small)"
+ style="width:40px; height:40px; object-fit:contain; border:1px solid #ddd; border-radius:6px; background:#fff;"/>
+ </td>
+ </t>
<!-- QTY -->
<td style="border:1px solid #ccc; padding:6px; text-align:center;">
<span t-field="line.product_qty"/> <span t-field="line.product_uom"/>