Odoo Help

Welcome!

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.

0

Picture in report

By
Coralie Cardon
on 2/9/16, 9:06 AM 307 views

Hello ! 

I try to put a picture in my report but i just have the square with this position

my code <img class="image" src="image/image.png"

Thanks,

1

Yenthe

--Yenthe--
6676
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 2/9/16, 2:18 PM

Hi Coco,

Judging by the code you're trying to show an image on a report which is inside your module, correct? You should also specify the name of your module in this case:

<img class="image" src="/your_module_name/image/image.png"/>


If you want to follow the official rules your image should be in /static/src/img by the way!
And just in case you want to show an image that is coming from within your database / model:

<span t-field="yourFieldName" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;img-rounded&quot;}"/


Yenthe

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

1 follower(s)

Stats

Asked: 2/9/16, 9:06 AM
Seen: 307 times
Last updated: 2/10/16, 2:48 AM