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.

3

Customize styling of Table in QWEB

By
Brijesh Kesariya
on 7/9/15, 8:23 AM 1,332 views

I would like to customize the Table printed by my QWeb Report Engine.

I want the strips of different colors of my alternative  rows. As well as I want the cellspacing and other style related attribute to work.

So Is it possible with stylesheet? How could I achieve this?

Thanks in advance.

You can add all the CSS you want to a CSS file in your module or by using the style attribute.

Yenthe
on 7/9/15, 8:24 AM
4
chirag jogi
On 7/9/15, 8:50 AM

Yeah, I confirm that.

Recently, I am facing the same issue, I could not add custom css to customise reports.

Until further fix, the workaround you can use to achieve you goal is something like that:

<template id="report.style" name="style">

<style type="text/css">

body {

color: #000 !important;

}

.border-black td {

border-top: 1px solid black !important;

}

.table-condensed > thead > tr > th {

border-bottom: 1px solid black !important;

}

.zero_min_height {

min-height: 0px !important;

}

/* YOU CAN ADD YOUR CUSTOM CSS HERE */

</style>

</template>

Thanks...

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: 7/9/15, 8:23 AM
Seen: 1332 times
Last updated: 9/25/15, 6:45 AM