Odoo Help


2 Answers
ZEeineb Tunisia
2/18/14, 10:15 AM


you can try to do so that was helpful for me

Using selector [data-id="my_field"]====> for a specific th tag and [data-field="my_field"] ====>for specefic td tag

Add the following code in your custom css file

   /*css properties */  

    /*css properties */
1 Comment
Ankit H Gandhi(AHG) India
10/25/15, 3:15 AM

Thanks @ ZEeineb


Hiral Patel (hip) India

--Hiral Patel (hip)--
| 3 2 7
Gandhinagar, India
--Hiral Patel (hip)--

Hiral Patel (hip) India
9/16/13, 11:08 AM


In openerp-web -> addons -> web -> static -> src -> base.css you can find out following class :

.openerp th { font-weight: bold; vertical-align: middle; }

Modify this class by adding : text-align: center;

After modification refresh the browser, The header of tree view is aligned to 'center'.

ZEeineb Tunisia
9/16/13, 11:41 AM

Thank you for your answer.

ZEeineb Tunisia
9/16/13, 11:45 AM

The concern is that we apply a CSS style to the whole list so all the titles in this list will be centered or right where the same for all values ​​will be centered or right or left. Can we apply a style for a specefic tree or for specefic titles on the tree? Thank you.

Atchuthan - Technical Consultant, Sodexis Inc India
9/17/13, 3:32 AM

@Hiral Patel, can we change the css alignment only for a particular tree?

Hiral Patel (hip) India
9/18/13, 4:46 AM

It may be possible to apply for particular module by extend particular template, add class to <thead>, but not sure about this.

Ask a Question
Keep Informed
2 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.

Odoo Training Center

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

Test it now