I want to insert a logo in the header of a report using Odoo 10.
I tested
<img t-att-src = "'/ lt_sales / static / src / img / logo.png'" />
and
<img class = "img" src = "/ lt_sales / static / src / img / logo.png" />
It's working In Odoo 8 without any problem, but not in Odoo 10. Why is that, and how can I fix it?
If you want using company logo:
<div class="col-xs-6 text-right">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 50px;" />
</div>
If you want insert static image the report you need to have the image in the folder:
<div class="col-xs-6 text-right">
<img class="img-responsive" src="/lt_sales/static/src/img/logo.png" style="max-height: 50px;" />
</div>