Search Here

How to Align Left [float, integer] Fields in Tree View in Odoo

In this article you will learn how to align left  [float, integer] fields in Tree View. As we know that Odoo fields such as numbers (float and integer) are by default right aligned in tree / list view. As you can see in below screen shot.

How to Align Left  [float, integer] Fields in Tree View in Odoo

 

Change Text Alignment of Float Field 

I will show you how to left align Odoo fields [float, integer] in tree views. To left align float and integer fields in Odoo list or tree views follow these steps.


1. Go to following path.
C:\Program Files\Odoo 8.0 20151219\server\openerp\addons\web\static\src\css
2. You will see the following files.


How to Align Left  [float, integer] Fields in Tree View in Odoo



3. Open base.css file in any text editor.


How to Align Left  [float, integer] Fields in Tree View in Odoo

 

4. Now search or find “.openerp .oe_list_content td.oe_number” (without double quotes)

5. Change text-align : right to “left” (without double quotes) in line no 2718 and save the file.

6. Now you will see that we have done this. 

How to Align Left  [float, integer] Fields in Tree View in Odoo


  

Post a Comment

2 Comments