Odoo Help


What are the css class available for odoo reporting ? Where we can find it ?

Karthik Arumugam
on 10/14/15, 5:52 AM 2,656 views

Hi, Any body tell me that what are css classes we can use in the odoo qweb reporting .

On 10/14/15, 8:16 AM


You can use the bootstrap class : http://getbootstrap.com

You can use  your own class in the tag with

 <div style="position: relative;">bla bla</div> 

Or this :

/* Your code */

Best regards


You could use all bootstrap and fontawesome classes

Axel Mendoza
on 10/14/15, 2:44 PM
Asmita Chavan
On 3/10/16, 2:39 AM


External style sheets has been added in Odoo, in report module, which contains classes of bootstrap, font-awesome etc.

You can refer to  file : report > views > layouts.xml

In which you can find the external stylesheet links:

 <xpath expr="//head" position="inside">

<link href="/web/static/lib/bootstrap/css/bootstrap.css" rel="stylesheet"/>

<link href="/website/static/src/css/website.css" rel="stylesheet"/>

<link href="/web/static/lib/fontawesome/css/font-awesome.css" rel="stylesheet"/>

<style type="text/css">

<t t-call="report.style"/>



here template with id "report.style" is called, in which some new styles are defined:

in the same file, you can find this template:

<template id="style">

body {

color: #000 !important;

word-wrap: break-word;


.border-black td {

border-top: 1px solid black !important;


.table-condensed > thead > tr > th {

border-bottom: 1px solid black !important;


.table-condensed > tbody > tr {

page-break-inside: avoid !important;


.zero_min_height {

min-height: 0px !important;



Likewise, you can explore all other css classes defined in Odoo.

Hope, this helps you !

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: 10/14/15, 5:52 AM
Seen: 2656 times
Last updated: 4/23/18, 12:23 PM