Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
11199 Näkymät
<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

Avatar
Hylkää

Hello, did you get the solution ?

Tekijä

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

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

Tekijä

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

its better than no solution. please tell us how

Tekijä

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

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

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
45
huhtik. 23
85156
8
jouluk. 22
19947
1
toukok. 25
39773
2
heinäk. 20
37343
2
lokak. 17
17259