diff options
| author | jbm-odoo <jbm@odoo.com> | 2018-10-22 08:05:03 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-11-06 13:01:57 +0000 |
| commit | 22ee6ebbfc6b508aabfefb4e114045f4b36cf8df (patch) | |
| tree | 6867ab4ef7d347ea352d642dd11b421b928ff5a4 /addons/hr_fleet/__manifest__.py | |
| parent | 564c3867de17469af11a0cf9c343d173371a9104 (diff) | |
[ADD] hr_fleet: Add claim report and cars history per employee
Purpose
=======
When an employee leaves the company, the fleet manager must ask to the insurance company
a claim report for this employee. But in oddo, there is no easy way to have an history
of the drivers.
Specification
=============
1/ On the employee form, add a stat button: "x cars". The button shouldn't be displayed if the count = 0.
Make a bridge (auto_install: True in the manifest) depending on hr (hr.employee) and fleet (fleet.vehicle.assignation.log)
- Add a field employee_cars_count (computed) to count the amount of cars the employee drove.
- Add an method action_open_employee_cars, that return an action (ir.actions.act_window)
that open on the fleet.vehicle kanban filtered on cars the employee had driven.
2/ In this bridge module, add on the fleet.vehicle.assignation.logs a button (like in expense) to upload
documents about the car for a particular employee (PV, rapport d'assurance, blabla). On the employee
form view, add an action button (with groups fleet_manager) to print all the related documents
(all the attachements on the fleet.vehicle.assignation.logs for the employee).
closes odoo/odoo#28077
Diffstat (limited to 'addons/hr_fleet/__manifest__.py')
| -rw-r--r-- | addons/hr_fleet/__manifest__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/hr_fleet/__manifest__.py b/addons/hr_fleet/__manifest__.py new file mode 100644 index 00000000000..8e28eb3833e --- /dev/null +++ b/addons/hr_fleet/__manifest__.py @@ -0,0 +1,15 @@ +# -*- encoding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. +{ + 'name': 'Fleet History', + 'version': '1.0', + 'category': 'Human Resources', + 'summary': 'Get history of driven cars for employees', + 'description': "", + 'depends': ['hr', 'fleet'], + 'data': [ + 'views/employee_views.xml', + 'views/fleet_vehicle_views.xml', + ], + 'auto_install': True, +} |
