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.

0

Can't change backgroud color of fields in odoo views.

By
Sana Ali
on 11/8/16, 3:18 AM 81 views

Hello, I need to change column width and back-ground color in Odoo 9 tree Views. I have tried different methods but failed to achieve that.

I want to customize the complete tree view rather than a single field/row/column.


I would be very grateful of any help.

 

2

Hilar AK

--Hilar AK--
778
| 4 1 7
Italy
--Hilar AK--


Hilar AK
On 11/9/16, 1:42 AM

Try to give css:

1. for that just create a css file example.css in your custom module

add your css code there

2.make an asset file asset.xml and add css in backend assets

     eg:

        <template id="" name="style1" inherit_id="website.assets_backend">
             <xpath expr="." position="inside">
                 <link href="yourcssfilepath" rel="stylesheet" type="text/css"/>
             </xpath>
         </template>     

3. add asset file in manifest , then upgrade 

you can set you own code in css for the tree view and use its proper classes

eg css code:

.oe_list {    background-color: white !important;
}    

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: 11/8/16, 3:18 AM
Seen: 81 times
Last updated: 11/9/16, 1:42 AM