Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


logo.png;base64, shows Internal Server Error

Md. Tanzilul Hasan Khan
on 9/21/16, 8:35 PM 67 views

I am trying to show different size of image on website. When I use following line of code, it gives me 500 Internal Server Error :

<img t-att-src="'/logo.png;base64,'" t-att-title="res_company.name" style="max-width: 200px; max-height: 150px;"/>

It seems that whenever I use base64, it gives me internal server error. How to fix it?

Can you post the complete code (seems to be truncked... because "'/logo.png;base64,'" it is no valid ! Why are you trying to use base64 if you have the path ?

And please, provide the traceback present in your logs.

Jérémy Kersten (jke)
on 9/22/16, 3:32 AM

That sound like it is not root cause of your internal error.

Just tested here: http://172938-9-0-e72b85-all.runbot10.odoo.com/page/test1

Jérémy Kersten (jke)
on 9/22/16, 3:42 AM

I was using base64 so that I could change the size of logo on website. The company logo gets resized to 183px (approx) and I needed to have bigger logo on website. I found this on forum - https://www.odoo.com/forum/help-1/question/how-change-the-logo-size-101691

Later I created image field and showed that on website.

Md. Tanzilul Hasan Khan
on 9/22/16, 3:50 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 9/21/16, 8:35 PM
Seen: 67 times
Last updated: 9/22/16, 3:33 AM