summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-09-15 11:34:08 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-09-15 11:34:08 +0700
commit062f8e6c5bf9ad87c9de7137dd399fa42d8d66a8 (patch)
treed185d8e019e1f0b39e77deb91a475cbee04bf872
parentb3ec9281f0afe9da2b5c6bd207289de8cc5888c4 (diff)
push
-rw-r--r--indoteknik_custom/report/purchase_report.xml57
1 files changed, 28 insertions, 29 deletions
diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml
index dedd100f..17d314ff 100644
--- a/indoteknik_custom/report/purchase_report.xml
+++ b/indoteknik_custom/report/purchase_report.xml
@@ -76,53 +76,52 @@
<!-- ORDER LINES -->
<table style="border-collapse:collapse; width:100%; margin-top:16px;">
- <!-- HAPUS display: table-header-group biar cuma muncul sekali -->
<thead>
- <tr style="background:#f2f2f2; font-size:10px; color:#666;">
- <th>Description</th>
- <th style="text-align:right;">Qty</th>
- <th style="text-align:right;">Unit</th>
- <th style="text-align:right;">Tax</th>
- <th style="text-align:right;">Subtotal</th>
+ <tr style="background:#f2f2f2;">
+ <th style="border:1px solid #ccc;">Description</th>
+ <th style="border:1px solid #ccc; text-align:right;">Quantity</th>
+ <th style="border:1px solid #ccc; text-align:right;">Unit Price</th>
+ <th style="border:1px solid #ccc; text-align:right;">Taxes</th>
+ <th style="border:1px solid #ccc; text-align:right;">Subtotal</th>
</tr>
</thead>
+
<tbody>
<t t-foreach="doc.order_line" t-as="line">
- <tr style="page-break-inside: avoid;">
- <td style="border:1px solid #ccc; padding:4px;">
+ <tr>
+ <td style="border:1px solid #ccc;">
<span t-field="line.name"/>
</td>
- <td style="border:1px solid #ccc; padding:4px; text-align:right;">
+ <td style="border:1px solid #ccc; text-align:right;">
<span t-field="line.product_qty"/> <span t-field="line.product_uom"/>
</td>
- <td style="border:1px solid #ccc; padding:4px; text-align:right;">
+ <td style="border:1px solid #ccc; text-align:right;">
<span t-field="line.price_unit"/>
</td>
- <td style="border:1px solid #ccc; padding:4px; text-align:right;">
+ <td style="border:1px solid #ccc; text-align:right;">
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.taxes_id))"/>
</td>
- <td style="border:1px solid #ccc; padding:4px; text-align:right;">
+ <td style="border:1px solid #ccc; text-align:right;">
<span t-field="line.price_subtotal"/>
</td>
</tr>
+ <!-- Thead khusus untuk website_description -->
<t t-if="line.product_id.website_description">
- <tr style="page-break-inside: avoid;">
- <td colspan="5"
- style="
- border-left:1px solid #ccc;
- border-right:1px solid #ccc;
- border-bottom:1px solid #ccc;
- border-top:0;
- padding:8px 12px;
- background:#fafafa;
- font-size:11px;
- line-height:1.4;
- page-break-inside: avoid;
- ">
- <div style="white-space: normal;" t-raw="line.product_id.website_description"/>
- </td>
- </tr>
+ <thead>
+ <tr style="background:#f9f9f9;">
+ <th colspan="5" style="border:1px solid #ccc; text-align:left;">
+ Description
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td colspan="5" style="padding: 1rem; background:#fafafa; border-left:1px solid #ccc; border-right:1px solid #ccc; border-bottom:1px solid #ccc;">
+ <div t-raw="line.product_id.website_description"/>
+ </td>
+ </tr>
+ </tbody>
</t>
</t>
</tbody>