Skip to Content
Menu
This question has been flagged
2 Replies
3800 Views

I'm using Odoo 10 Community Edition and I'm trying to configure both, Fleet and Human Resources modules (in order to manage the vehicles float of a Company).

The Company in question, owns a group of cars that assigns to some employees. My problem is that I can't assign any vehicule (previously loaded in the fleet module) to any employee (previously loaded in the HR module). Simple when I'm going to fill the Driver field in the vehicles form, I'dont see any employee (the field show me records from the contact database, but not from the employee database).

Does anyone know wath I'm doing wrong? It's possible to link Vehicles & Employees?


I would appreciate any assistance!

Thanks in advance,

Gerardo Rodriguez

Avatar
Discard
Best Answer

Guys,

Have a look at https://github.com/JayVora-SerpentCS/fleet_management, will help you extend.

Driver should usually be employee.

Thanks.

Avatar
Discard
Best Answer

I am about to do the same and realized of the same problem. 

What happens is that the "Driver" field in the Fleet app is the partner model, in other words the "Contacts" app. The Employees database comes from the "hr" model which is not available in the Fleet app.

There are various ways to solve this.

1. If Fleet will have public cars as well, like from third party, then you can add a tag to the contacts app where you say whether a contact is an employee or not. Then you can immediately have drivers in the fleet app. This is not elegant but could work.

2. If all drivers are employees, then use Odoo Studio or source code changes to change the "Driver" field in the Fleet app to use the "employee" field from HR.


Avatar
Discard