Odoo Help

0
3 Answers
1
Giezel Esteves
7/19/16, 11:42 PM

Inside my stylesheet I added something like this.

<style type="text/css">

<![CDATA[

/* Arial Narrow */

@font-face {

font-family: 'Arial Narrow';

font-style: normal;

src:url('/test_module/static/src/fonts/arial-narrow.woff') format('woff'),

url('/test_module/static/src/fonts/arial-narrow_d.ttf') format('truetype');

}

]]>

</style>

2 Comments
deep
7/20/16, 2:38 AM

Hi I tried this but its not working for me. then I tried a simple one like

<style type="text/css">

.th{

background-color: blue;

}

</style>

Just trying add background color to the table header, no luck. Thanks

deep
7/20/16, 7:03 AM

Well finally made it working, However I would like to know from where can I get the URL for the font? Am looking for font Calibri

0
kirubanidhi
7/20/16, 6:02 AM

hello deep,

please try to check this code,


create a css file in your module like as

module/static/src/css/file.css

.row {

font-family: 'Arial Narrow';

font-style: normal;

background-color: white;

}


specified css file name in your openerp file,

'css': ['static/src/css/your_file.css'],


after specify openerp file you can apply below this link in your report file

example name as report_file.xml,

<div class="page">

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

</div>

3 Comments
deep
7/21/16, 12:42 AM

Hi, I tries this.. no luck.. Thanks

kirubanidhi
7/22/16, 1:13 AM

upload your error code

kirubanidhi
7/22/16, 1:14 AM

I tried above code its work for me

Ask a Question
Writer
2086
deep
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now