Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3448 มุมมอง

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.

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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;
}    
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 18
6176
0
มี.ค. 15
4402
0
มิ.ย. 16
4350
3
เม.ย. 25
4669
1
ธ.ค. 24
5992