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