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.

2

How can I put a background image in a report?

By
chidowsky
on 6/5/13, 2:07 PM 4,760 views

Hi,

I'm trying to put a image in the background that will be drawn in every report where the header and footer are requiered. It is actually the template that is used in every official paper of my business thats why it is important. So i need to know how can i upload the image and the syntaxis to be used in the background. If i need a module please tell me

Thanks in advance

3
luis
On 6/5/13, 6:04 PM

After template tag, i use the tag <pagegraphics> and <image> in the RML document like this :

<document filename="test.pdf"> <template pagesize="(21.5cm,21.5cm)" title="Test" author="Martin Simon" allowsplitting="20">

<pageTemplate id="main">

<pageGraphics>
    <image file="/addons/report/yourimage.png" x="6" y="0" width="21.5cm" height="21.5cm"/>

</pageGraphics>

    <frame id="first" x1="78" y1="-3.8cm" width="451" height="698"/>
</pageTemplate>

that give me a background image, for my document, just be careful, in the path of the image. to be correct. hope it helps.

Hello, do you know if it is possible to do this if my company template file is a .pdf (i.e. in vector form)? Using an image file such as a jpg makes all documents very large and we lose resolution. Many thanks.

Lawrence
on 10/4/13, 2:10 PM

Hello. I try this in Version 8 ... But not work. For quotation and invoice are different files, right? I use the same path as you. Maybe these is a tutorial? Thank you!

hanhoe
on 2/20/14, 3:28 PM

Hi, its not working for me.. could you please give me the complete rml file of this .

Jasad
on 2/21/14, 1:15 AM

It works for me, however I would like to have this image only on the first(!) page of a report (SO, PO, offer etc.), is it possible?

M. Höppner
on 3/15/14, 1:56 PM

@M Hoppner: Hi, did you find a way to put image on only single page?

Yogesh
on 9/25/14, 4:36 PM
0
bernscheinder
On 8/16/13, 6:39 AM

Hi,

How to use graphs and pie chart in openerp

thanks

pls open a new Question for this topic! But for a first intro take a look here: https://doc.odoo.com/trunk/server/03_module_dev_03/#gantt-views

Peter Nietz
on 9/9/14, 9:26 AM

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

2 follower(s)

Stats

Asked: 6/5/13, 2:07 PM
Seen: 4760 times
Last updated: 3/16/15, 8:10 AM