Hello, I am developing a module and trying to implement a tree view of vehicles from fleet.vehicle module. Even though I'm specifying which fields to show, Odoo i showing completely different ones. Here's my complete xml file:
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id='tms_vehicle_action' model='ir.actions.act_window'>
<field name="name">Vehicles</field>
<field name="res_model">fleet.vehicle</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
</record>
<!-- Tree(list) View -->
<record id="tms_vehicle_view_tree" model="ir.ui.view">
<field name="name">vehicles List</field>
<field name="model">fleet.vehicle</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="order_count"/>
<field name="seats"/>
</tree>
</field>
</record>
<record id="tms_vehicle_graph" model="ir.ui.view" >
<field name="name">vehicle graph</field>
<field name="model">fleet.vehicle</field>
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Orders younger than 30 days">
<field name="name"/>
<field name="moyoc_stored" type="measure"/>
</graph>
</field>
</record>
<menuitem name="Vehicles" id="tms_vehicle_menu" parent="tms_base_menu" sequence="3"/>
<menuitem id="tms_vehicle_menu_item" parent="tms_vehicle_menu" action="tms_vehicle_action"/>
</odoo>
Tree view should only show name, order_count, and seats fields, but is currently showing the same fields as the tree view in Fleet module. How can I customize my tree view to show only specific fields?