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.

1

[7.0] Webkit Background

By
chidowsky
on 12/19/13, 3:18 PM 1,466 views

Hi, I've been doing almost all my reports on webkit, because are easier to do. Any way, I was wondering how could I put a background image for the report, or for a group of reports.

I know a little of CSS and HTML, enough to make a reports on webkit. But im triubuling with this because i dont know where I should put my image, on the header/footer area of webkit, or directly on CSS.

Hope someone has been on my same problem and fix it. Any way thanks in advance...

1

Daniel Reis

--Daniel Reis--
3436
| 6 7 9
Lisbon, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt


Daniel Reis
On 12/20/13, 5:00 AM

I did that and it worked beautifully: I scanned a paper form into a png, placed it's in my Webkit report as a backgroud image, using base64, and then used CSS to place the OpenERP data fields on the right places:

This is the HTML head I used:

<head>
    <style type="text/css">
        ${css}
    </style>
    <style type="text/css"><!--
    .table1 { 
        width: 180mm;
        height: 255mm;
        font-size:10;
        background-image: url(data:image/png;base64,{{image base64 goes here}};
        background-repeat: no-repeat; 
        background-size: 100%;
        background-origin: border-box;

    }--></style>
</head>

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

0 follower(s)

Stats

Asked: 12/19/13, 3:18 PM
Seen: 1466 times
Last updated: 3/16/15, 8:10 AM