fix(coc): customer logo in 3rd column of customer block (not separate row)

Moved doc.partner_id.image_1920 from a standalone right-aligned div
below the accreditation table to a third column (20% width, centre-
aligned) of the customer-info table — sits inline with Customer
Address (40%) and Contact Name/Email/Phone (40%). The customer
block is now a single bordered 3-column row.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-17 02:07:03 -04:00
parent edd52f16a7
commit cb79186325

View File

@@ -108,21 +108,12 @@
</table>
</t>
<!-- Customer logo (separate, right-aligned) -->
<t t-if="doc.partner_id.image_1920">
<div style="text-align: right; margin-top: 6px;">
<img class="customer-logo"
t-att-src="'data:image/png;base64,%s' % doc.partner_id.image_1920.decode()"
alt=""/>
</div>
</t>
<hr class="heavy"/>
<!-- Customer block -->
<table>
<!-- Customer block — 3 columns: address | contact | logo -->
<table class="bordered">
<tr>
<td style="width: 50%; vertical-align: top;">
<td style="width: 40%; vertical-align: top;">
<div>
<strong t-if="not is_fr">Customer Name: </strong>
<strong t-if="is_fr">Nom du client : </strong>
@@ -139,7 +130,7 @@
<span t-if="doc.partner_id.zip"> <t t-esc="doc.partner_id.zip"/></span>
</div>
</td>
<td style="width: 50%; vertical-align: top;">
<td style="width: 40%; vertical-align: top;">
<t t-set="contact" t-value="doc.contact_partner_id or doc.partner_id"/>
<div>
<strong t-if="not is_fr">Contact Name: </strong>
@@ -157,6 +148,12 @@
<t t-esc="contact.phone or '-'"/>
</div>
</td>
<td style="width: 20%; text-align: center; vertical-align: middle;">
<img t-if="doc.partner_id.image_1920"
class="customer-logo"
t-att-src="'data:image/png;base64,%s' % doc.partner_id.image_1920.decode()"
alt=""/>
</td>
</tr>
</table>