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.

2

Problem regarding adding custom css file in odoo v8.0 reports

By
Karthik Arumugam
on 10/19/15, 1:18 AM 478 views

Please any body help me to add my own css file to my own reports

I have tried the following way

<openerp>

<data>

<template id="assert_my_own_template" inherit_id="website.assets_frontend">

<xpath expr="." position="inside">

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

</xpath>

</template>

</data>

</openerp>

but it does not worked .

2

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


Ahmed M.Elmubarak
On 10/19/15, 2:37 AM

Hello,

You can directly use <style> tag in your Qweb report.

Kindly check this issue 

Regards,


2
Jaydeep Barot (jar)
On 11/30/15, 4:21 AM

Hello Karthik,

use this for add your custom css in report 

<openerp>

<data>

<template id=my_own_css_template" inherit_id="report.minimal_layout">

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

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

</xpath>

</template>

</data>

</openerp>


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

1 follower(s)

Stats

Asked: 10/19/15, 1:18 AM
Seen: 478 times
Last updated: 12/1/15, 12:44 AM