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.

3

OpenERP 7 tree view css for Align column

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

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 ?

laribi
on 8/14/13, 10:43 AM

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

priyankahdp
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 :)

laribi
on 8/16/13, 1:19 PM

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

priyankahdp
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" />

priyankahdp
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; }

laribi
on 11/12/13, 7:21 AM

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: 5/2/13, 4:22 AM
Seen: 4140 times
Last updated: 3/16/15, 8:10 AM