odoo/odoo#166911

Created by fw-bot
Merged at 66e1c9e486e4ff542693fc7e222e848c2ae39985

Statuses:

label
odoo-dev:saas-17.2-17.0-opw-3858626-error_searching_by_driver-naja-gUiC-fw
head
89a4610c5142bb026a4995feda2231c0bb15dcf8
merged
1 year ago by Bugfix, Natalie Jacques (naja)
odoo/odoo
17.0 #161821
saas-17.1 #166880
saas-17.2 #166911
18.0
saas-18.1
saas-18.2
saas-18.3
master #166921

[FW][FIX] fleet: fix search by driver

Problem:
* If the fleet app is installed by itself (i.e. without hr) searching a vehicle by driver will throw an error.

Notes about fix:
* The error is caused by a hr_fleet child field being accessed in the base Vehicle model.

opw-3858626


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #161821