Commit Graph
11 Commits
Author SHA1 Message Date
jbm-odoo df44538a8b [IMP] fleet: Add analytic account and mobility card
Create analytic account from fleet (and link it to vehicle) based
on the plate and the fiscal deduction rate (if l10n_hr_payroll_fleet
is installed).

Add on employee a Mobility Card number. This number is set on vehicle
when we put a partner linked to employee on a vehicle.

taskID: 2127641
2019-11-28 10:39:49 +00:00
Kevin Baptiste 82df1dfccc [IMP] fleet: model cleanup, dashboard
Purpose
=======

It is currently difficult to know exactly what is used for costs
and services on the contracts.

Hence it make it difficult to evolve the fleet application
We should clean the models in order to have something that is clearer

Specification
=============

Cleanup of models: removed Fuel and Cost. Contract and Services are no
longer inheriting Cost and are seperate models simplifying the use of
Fleet. A contract now has included services and they are no longer
generating cost.

closes odoo/odoo#34090

Taskid: 1931775
Related: odoo/enterprise#4572
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-27 11:54:51 +00:00
RomainLibert 3c32f9b903 [IMP] fleet: add future drivers on cars + managers on models
Basically when someone requests a new car, getting that car ready takes
some time, this means that during the waiting period, that person is
still driving its old car.

This commit adds a field future_driver_id on fleet.vehicle to tackle
that problem and a boolean plan_to_change_car on the partner to track
who wants to change car.

+ Apply some linting to the files
This commit cleans the vehicle form view, the vehicle contract form
view, the cost list view and adds a manager_id field on the
vehicle.model which is then used as a related on the vehicle.

Task: 1930298

closes odoo/odoo#31197

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-04-18 11:55:25 +00:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Ravi Gadhia 288568f486 [IMP] fleet: change directory structure according to new api 2016-05-27 10:33:28 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Cedric Snauwaert f598658a4c [ADD]add license in .py files
bzr revid: csn@openerp.com-20121031142830-fw2sqmm3dyysv5ah
2012-10-31 15:28:30 +01:00
Cedric Snauwaert 757328b2fe [FIX]removed useless code in view as well as wizard class
bzr revid: csn@openerp.com-20121024121719-jp3wfyz2v7oaaxgr
2012-10-24 14:17:19 +02:00
Cedric Snauwaert 183646f3df [ADD]wizard for renewing contracts
bzr revid: csn@openerp.com-20121022152719-jywhocuqj9sxnv5x
2012-10-22 17:27:19 +02:00
Cedric Snauwaert a491f75c5c rename files to match module name
bzr revid: csn@openerp.com-20120920090846-obht1omarbvlt38o
2012-09-20 11:08:46 +02:00
Denis Ledoux dle@openerp.com a3c51b5e7c [ADD][REM]Renaming of the folder module
bzr revid: dle@openerp.com-20120920082638-3kfu4qt1ebh5ccub
2012-09-20 10:26:38 +02:00