Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6009 Widoki

Hello

is there a way to center align columns in tree view or list view? also would be useful if I could bold some columns, any pointers with this is much appreciated, thanks!


using v15.


Awatar
Odrzuć
Najlepsza odpowiedź

Hello Mike,

Please find below code it may help you,

This class class="text-center" may be used for text alignment. It will assist you align text in the centre.

You may use the class class="font-weight-bold" to make a bold field. Use this class in a specific field that you want to be bold. 

Find Code in Comment. 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Awatar
Odrzuć

You may use the class class="text-center" to make an alignment of number field too.

Please see the code below as an example.

<tree string="Repair Order" class="text-center">
<field name="name" class="font-weight-bold"/>
<field name="partner_id"/>
<field name="amount" class="text-center"/>
</tree>

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 23
135
1
lut 23
3532
0
sty 23
3436
1
sty 22
6200
1
cze 25
1261