Skip to content

Commit

Permalink
[IMP] fleet: add activity view on main actions
Browse files Browse the repository at this point in the history
Purpose is to extend the use of the newly-introduced activity view allowing
to see at a glance activities to perform on a given model. It eases daily
job of people working with activities.

Updated :

  * fleet vehicle and contract main menu actions;

Some menu entries are also renamed to ensure coherence in all menu entries
that all use vehicles, with an 's'.

This commit is linked to task ID 1889413.
  • Loading branch information
tde-banana-odoo committed Oct 2, 2018
1 parent 2d03eb4 commit 29cf987
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addons/fleet/views/fleet_vehicle_cost_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</record>

<record id='fleet_vehicle_costs_action' model='ir.actions.act_window'>
<field name="name">Vehicle Costs</field>
<field name="name">Vehicles Costs</field>
<field name="res_model">fleet.vehicle.cost</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form,graph</field>
Expand Down Expand Up @@ -361,7 +361,7 @@
<field name="name">Vehicles Contracts</field>
<field name="res_model">fleet.vehicle.log.contract</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form,graph</field>
<field name="view_mode">tree,kanban,form,graph,activity</field>
<field name="context">{'search_default_open': 1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Expand Down
2 changes: 1 addition & 1 deletion addons/fleet/views/fleet_vehicle_model_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</record>

<record id='fleet_vehicle_model_action' model='ir.actions.act_window'>
<field name="name">Vehicle Model</field>
<field name="name">Vehicles Model</field>
<field name="res_model">fleet.vehicle.model</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
Expand Down
2 changes: 1 addition & 1 deletion addons/fleet/views/fleet_vehicle_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<field name="name">Vehicles</field>
<field name="res_model">fleet.vehicle</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="view_mode">kanban,tree,form,activity</field>
<field name="context">{'search_default_groupby_status': 1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Expand Down

0 comments on commit 29cf987

Please sign in to comment.