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.

1

Is it possible to overload css style in list view ?

By
WANTELLET Sylvain
on 2/15/13, 10:51 AM 2,317 views

I would like to customize list view (alignment, fonts, colors,...) I have noticed the 'base.css' file in web module where all styles are defined. But I don't want to modify it, because I'll have to do so for each new versions.

So, is it possible to overload / modify or use another style in the list view ?

Thanks.

Thank you. But I just want to modify or affect a new css class to a particular list view, I don't want to change all the list views of OpenERP.

WANTELLET Sylvain
on 2/18/13, 6:26 AM
1
Max
On 2/18/13, 11:23 AM

If you mean you want to edit the styles of a particular model's list view within OpenERP, that is not possible with pure CSS. The list view CSS rules will apply to all list views regardless of model.

You could do it with a lot of hacking - I'm talking about a custom module which uses javascript to dynamically load a css file based on the model name - data which may or may not be available at the front-end to javascript anyway.

However, you can define colours for rows in a listview based on a domain:

See this link

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

0 follower(s)

Stats

Asked: 2/15/13, 10:51 AM
Seen: 2317 times
Last updated: 3/16/15, 8:10 AM