diff --git a/odex25_fleet/odex_fleet/models/vehicle_deleation.py b/odex25_fleet/odex_fleet/models/vehicle_deleation.py index 07d956596..7489f3747 100644 --- a/odex25_fleet/odex_fleet/models/vehicle_deleation.py +++ b/odex25_fleet/odex_fleet/models/vehicle_deleation.py @@ -50,7 +50,7 @@ class VehicleDelegation(models.Model): km_number = fields.Integer(string='KM Number', compute='get_km', store=True,help='The value of the difference between the odometer at the moment of delivery and receipt') last_department_id = fields.Many2one(related='vehicle_id.department_id', string="Last Department",help='The last Department the vehicle was authorized for') last_project_id = fields.Many2one('project.project', string='Last Project', compute="get_last_project", store=True) - last_branch_id = fields.Many2one('res.branch', string="Last Branch", compute="get_last_branch", store=True,help='The last Branch the vehicle was authorized for') + last_branch_id = fields.Many2one('hr.department', string="Last Branch", compute="get_last_branch", store=True,help='The last Branch the vehicle was authorized for') @api.depends("vehicle_id") def get_first_odometer(self):