[FIX] fleet: missing avatar image for model and vehicle field
before this commit, in the list view of fleet (fleet.vehicle), services (fleet.vehicle.log.services) and odometer(fleet.vehicle.odometer) the vehicle_id and model_id field with many2one_avatar is not showing the image of vehicle and model. * open fleet -> fleet -> fleet * switch to list view * model field will be with empty image * similarly in services and odometer menus after this commit, the widget will be removed from the field as the avatar field doesn't exists in the model level. closes odoo/odoo#117752 X-original-commit: e57b6f898775a0e432ae1a21266a0f4bf82c0242 Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
committed by
Kevin Baptiste
parent
27d9f5c8ff
commit
f4fab2d10c
@@ -18,7 +18,7 @@ MODEL_FIELDS_TO_VEHICLE = {
|
||||
}
|
||||
|
||||
class FleetVehicle(models.Model):
|
||||
_inherit = ['mail.thread', 'mail.activity.mixin']
|
||||
_inherit = ['mail.thread', 'mail.activity.mixin', 'avatar.mixin']
|
||||
_name = 'fleet.vehicle'
|
||||
_description = 'Vehicle'
|
||||
_order = 'license_plate asc, acquisition_date asc'
|
||||
|
||||
@@ -18,6 +18,7 @@ FUEL_TYPES = [
|
||||
|
||||
class FleetVehicleModel(models.Model):
|
||||
_name = 'fleet.vehicle.model'
|
||||
_inherit = ['avatar.mixin']
|
||||
_description = 'Model of a vehicle'
|
||||
_order = 'name asc'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user