Odoo Help


OpenERP 7 tree view css for Align column

on 5/2/13, 4:22 AM 5,861 views
<page string="Fixed Allowances">
<field name="fixed_allowance_ids" nolabel='1'>
<tree string="fixed_allowance" create="false" edit="false"
    <field name='allowance_id' invisible="1" />
    <field name='allowance_name' />
    <field name='amount' class="align_change_css"/>

above shows my tree view code.need to change amount column left align.so i added class & wrote in that css below code

.align_change_css {
    color: blue;
    text-align: center;


but still shows records as right align & seems css not affected to that field column. i tried with inline style method also.but same result please advice me to implement this issue

Hello, did you get the solution ?

on 8/14/13, 10:43 AM

not yet friend..but i find some alternatives when i search workspace of openerp project :-)

on 8/16/13, 3:26 AM

Hello, i found an alternative also ,but i edited base.css if u want i tell u how :)

on 8/16/13, 1:19 PM

OOPs ..i also followed same but its too dangerous :-)

on 8/21/13, 5:39 AM

its better than no solution. please tell us how

Omal Bastin
on 11/4/13, 10:27 AM

<field name='code' style="align:left" />

on 11/4/13, 11:25 PM

Hello , Sorry for late, you can use this code in your file css not in the base.css

[data-field="amount"] { text-align : left; }

on 11/12/13, 7:21 AM

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

Question tools

0 follower(s)


Asked: 5/2/13, 4:22 AM
Seen: 5861 times
Last updated: 3/16/15, 8:10 AM