Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
11435 Prikazi

Hello, 

I would like to adjust the headers and the fields in my tree view, so i have used the following xml code:


<record model="ir.ui.view" id="fermes_list">
<field name="name">gestion_parcelles.ferme.tree</field>
<field name="model">gestion_parcelles.ferme</field>
<field name="type">tree</field>
<field name="arch" type="xml" >
<tree style="text-align: center">
<field name="farm_name"/>
<field name="farm_position"/>
<field name="approved_by" />
<field name="farm_adress"/>
<!--field name="currency" /-->
<field name="nb_terrains" />
<field name="nb_employes" />
<field name="nb_produits" />
</tree>
</field>
</record>

The problem is i can't see any changes. What i should do please?

Avatar
Opusti
Best Answer

You can't add css alignments or any thing in Odoo tree view because Odoo doesn't want you to mess with this view it's meant for simplicity. If you want customizations you have the kanban view for that and you can customize it as you wish by adding css classes and bootstrap.

But if you insist you can inherit the try view XML Qweb template + JavaScript using Owl JS framework to make the customizations on the Tree view itself that can be found in the "base" addon module but it's not recommended if you are not an expert and you don't now what you are doing. You can download Odoo Themes though.

Go to the app store here and change the the whole look and feel of Odoo if that's what you are aiming for.



Happy to help :) an upvote will be awesome

Avatar
Opusti