-
- Downloads
[FIX] fleet: prevent deletion of vehicle contract
When we create a contract information on a vehicle, there is an activation cost
automatically created. Before this fix, if we delete the activation cost line, it
deletes automatically the associated contract. We should prevent this and add a
warning message instead.
To make it easier for the user, we should also show the contract information on
the list and form views of the vehicule cost.
When deleting the vehicle contract, we should also automatically delete the
activation cost line associated.
closes odoo/odoo#72269
Signed-off-by:
Alex Tuyls <alt-odoo@users.noreply.github.com>
Showing
- addons/fleet/i18n/fleet.pot 6 additions, 0 deletionsaddons/fleet/i18n/fleet.pot
- addons/fleet/models/fleet_vehicle_cost.py 13 additions, 0 deletionsaddons/fleet/models/fleet_vehicle_cost.py
- addons/fleet/views/fleet_vehicle_cost_views.xml 2 additions, 0 deletionsaddons/fleet/views/fleet_vehicle_cost_views.xml
Please register or sign in to comment