You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

68 lines
2.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Inherited the fleet form to add Additional information-->
<record id="fleet_vehicle_model_view_form" model="ir.ui.view">
<field name="name">
fleet.vehicle.model.view.form.inherit.packers.and.movers.management
</field>
<field name="model">fleet.vehicle.model</field>
<field name="inherit_id" ref="fleet.fleet_vehicle_model_view_form"/>
<field name="arch" type="xml">
<field name="vehicle_type" position="inside"/>
<page name="information" position="inside">
<group>
<group string="Truck Information" invisible="vehicle_type != 'truck'">
<field name="truck_type_id"/>
</group>
</group>
</page>
</field>
</record>
<!--Creation action of the truck type model-->
<record id="truck_type_action" model="ir.actions.act_window">
<field name="name">Truck Type Action</field>
<field name="res_model">truck.type</field>
<field name="view_mode">tree,form</field>
</record>
<!--The tree for the truck type-->
<record id="truck_type_view_tree" model="ir.ui.view">
<field name="name">truck.type.view.tree</field>
<field name="model">truck.type</field>
<field name="arch" type="xml">
<tree string="truck.type">
<field name="name"/>
</tree>
</field>
</record>
<!-- Form view for the Truck types-->
<record id="truck_type_view_form" model="ir.ui.view">
<field name="name">truck.type.view.form</field>
<field name="model">truck.type</field>
<field name="arch" type="xml">
<form string="truck_type">
<sheet>
<group>
<group>
<field name="name"/>
<field name="capacity"/>
<field name="weight"/>
<field name="unit"/>
</group>
<group>
<field name="length" placeholder="Length..."/>
<field name="width" placeholder="Breadth..."/>
<field name="height" placeholder="Height.."/>
<field name="company_id" invisible="1"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- Menu to add the truck details in parent menus-->
<menuitem id="truck_type_fleet_menu_action" action="truck_type_action"
parent="fleet.fleet_configuration"/>
<menuitem id="truck_type_menu_action" action="truck_type_action"
parent="packers_and_movers_management.master_data_menu"/>
</odoo>