In Settings-> Companies -> Added an image [Logo]. In two of the reports, this logo is printed. But when printing sale order I get this error
Error while printing the sale order The code of the reports in which the logo appears is same as sale order report. In those two reports, it takes the company logo & prints it. No error. But I get this error only in sale order report. Can anyone please help me fix this error?
Code for your reference :
<div class="row">
<div class="col-xs-3">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
</div>
<div class="col-xs-9 text-right" style="margin-top:20px;" t-field="company.rml_header1"/>
</div>
<template id="report_saleorder">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="module.report_saleorder_document" t-lang="doc.partner_id.lang"/>
<br/><br/><br/>
should be given before t t-call="module.report_saleorder_document" t-lang="doc.partner_id.lang" and now it works buddy!