Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
10088 Tampilan

Hello,

It seems easy, but still I do not succeed in changing the company logo size on invoices.

I can make changes in invoice presentation but the Top part is obviously an other document and I do not find it

Thanks for your help

Avatar
Buang

did you find an answer to this?

Jawaban Terbai

The best solution for this its to change and replace the height and width attribute for the img tag on the header on the xml template of the report, like this:

<div class="header">
<img ct-if="res_company.logo" width="150" height="126" t-att-src="'data:image/png;base64,%s' %res_company.logo" class="pull-left img-responsive"/>
</div>
Avatar
Buang
Penulis Jawaban Terbai

I made some progress, the solution is in modification of the external_layout.header. Just need to change the max-height from the original 90px to the size you want


But it creates a problem with printing invoice, the account.invoice_form has probably a knowned reseverd space for header,.. but up to now I haver not been able to find how to change it...


If someone has a solution I would be gratefull

Avatar
Buang
Jawaban Terbai

Here is the solution to this and it does not need to change the code.

What you need is to have the company avatar to be 1024px wide at 300 dpi and in png format. That will increase the size on the invoice. You can preview it from users&companies>companies>print>preview external report

 

Avatar
Buang