If you set the type (cost_subtype_id) of a new contract (fleet.vehicle.log.contract) before setting vehicle_id you got an error: name = record.cost_subtype_id.name + ' ' + name TypeError: can only concatenate str (not "bool") to str because vehicle name was False. opw-2527268 closes odoo/odoo#70973 X-original-commit: 7d956af5106b9efe22b602af007088ce8c2c16ce Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>