Odoo Help


What is RML image file path in Openerp

on 3/17/15, 6:26 PM 1,934 views


Below is my rml report tag for displaying an image. However, it does not display any image in the pdf. 

<image file="addons/mymodule/report/lightweight.jpg" x="300" y="700" />

I also tried to use the url image path like "http://mydomain.com/images/test.jpg", it looks like may be there is something else missing here?

Any advise on where should I put my image file/s or how to resolve this issue? Thanks.

Alex Gallien
On 3/17/15, 7:47 PM

This bugged me for a while. Your code is correct, but it has to be between <pageGraphics> tags in <pageTemplate>. For example:

<document filename="$foo.pdf">
<template pageSize="(8.5in,11in)" title="$foo" author="$user">
<pageTemplate id="first">
<image file="addons/mymodule/report/lightweight.jpg" x="300" y="700" />

Hope that helps!

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/17/15, 6:26 PM
Seen: 1934 times
Last updated: 3/17/15, 8:17 PM