[FIX] fleet: avoid function field computation order issues
authorMartin Trigaux <mat@odoo.com>
Thu, 13 Nov 2014 15:02:11 +0000 (16:02 +0100)
committerMartin Trigaux <mat@odoo.com>
Thu, 13 Nov 2014 15:05:54 +0000 (16:05 +0100)
commite826e84af5eeca402c6cb60bc53fa20d1de67ded
tree843fffa40078027b6a0b917a8cf049c928b8cb58
parente038fec696ea7029b2f66da36fdbf337c23a18d1
[FIX] fleet: avoid function field computation order issues

The name of a vehicle is function field.
The field odometer on a vehicle has a a setter that creates an odometer.
The name of an odometer is a function field that uses the name of the vehicle.
If a vehicle is created with a value in odometer field, the odometer is created before the name is computed so the concatanation would fail.
Fixes #3468
addons/fleet/fleet.py