Odoo Help


V11 How to remove the Watermark from Background External Report layout?

Gill Potter
on 3/13/18, 9:54 AM 130 views

I want to use the Background Template for printed invoices. However I do not want to include the watermark and I would like to change the purple headings to blue.

I have found where it is defined in web/static/src/less/layout_background.less 

.o_report_layout_background {
background-image: url(/base/static/img/bg_background_template.jpg);
background-size: cover;
background-position: bottom center;
background-repeat: no-repeat;
min-height: 900px;
thead tr th, h2 {
color: @odoo-brand-primary;

I am familiar with inheritance in python and xml but do not know how to safely change a .less file in Odoo. I have tried unsuccessfully to find examples, any example of how to achieve this would be most welcome. 


Ermin Trevisan

--Ermin Trevisan--
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--

Ermin Trevisan
On 3/13/18, 11:15 AM

There is no inheritance with CSS/Less, but you can add new assets or overwrite existing assets containing the corresponding CSS-classes, see https://stackoverflow.com/questions/1093224/is-the-order-or-sequence-of-rules-in-css-significant for a brief explanation.

You may want to read the official documentation or Yenthe's tutorial: https://www.odoo.yenthevg.com/adding-static-resources-css-and-javascript-to-odoo/

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

1 follower(s)


Asked: 3/13/18, 9:54 AM
Seen: 130 times
Last updated: 3/16/18, 11:54 AM