Odoo Help


Customize styling of Table in QWEB

Brijesh Kesariya
on 7/9/15, 8:23 AM 1,500 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.

on 7/9/15, 8:24 AM
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;






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 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

2 follower(s)


Asked: 7/9/15, 8:23 AM
Seen: 1500 times
Last updated: 9/25/15, 6:45 AM