Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5937 Weergaven

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.


Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer

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>

Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 23
134
1
feb. 23
3481
0
jan. 23
3370
1
jan. 22
6121
1
jun. 25
1173