#fix: logo

This commit is contained in:
seshikanth 2026-07-15 18:33:50 +05:30
parent 524bc488a7
commit dfca6bf90b
1 changed files with 28 additions and 16 deletions

View File

@ -1,20 +1,32 @@
<?xml version="1.0"?>
<odoo>
<template id="report_payslip">
<t t-call="web.external_layout">
<div class="page">
<h2 id="payslip_name"><span t-field="o.name">August 2023 Payslip</span></h2>
<t t-set="is_invalid" t-value="o._is_invalid()"/>
<div t-if="is_invalid">
<strong id="invalid_warning"><span t-out="is_invalid">This payslip is not validated. This is not a legal document.</span></strong>
</div>
<div t-else="">
<div class="oe_structure"></div>
</div>
<div id="infos_table">
<table class="table table-sm table-borderless">
<thead class="o_black_border">
<tr>
<template id="report_payslip">
<t t-call="web.external_layout">
<div class="page">
<div class="row mb-3">
<div class="col-6">
<img t-if="o.company_id.logo"
t-att-src="image_data_uri(o.company_id.logo)"
style="max-height:80px; max-width:220px;"
alt="Company Logo"/>
</div>
</div>
<h2 id="payslip_name">
<span t-field="o.name">August 2023 Payslip</span>
</h2>
<t t-set="is_invalid" t-value="o._is_invalid()"/>
<div t-if="is_invalid">
<strong id="invalid_warning">
<span t-out="is_invalid">This payslip is not validated. This is not a legal document.</span>
</strong>
</div>
<div t-else="">
<div class="oe_structure"></div>
</div>
<div id="infos_table">
<table class="table table-sm table-borderless">
<thead class="o_black_border">
<tr>
<th>Employee Information</th>
<th>Other Information</th>
</tr>
@ -28,7 +40,7 @@
</div>
<div id="employee_id">
<strong class="me-2">ID:</strong>
<span t-if="o.employee_id.identification_id" t-field="o.employee_id.identification_id"/>
<span t-if="o.employee_id.employee_id" t-field="o.employee_id.identification_id"/>
<span t-else="" style="color:#875A7B" class="fw-bold">No ID number on the employee !!!</span>
</div>
<div id="employee_email" t-if="o.employee_id.work_email">