fleet_vehicle_odometer.py 365 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import fields, models
  4. class FleetVehicleOdometer(models.Model):
  5. _inherit = 'fleet.vehicle.odometer'
  6. driver_employee_id = fields.Many2one(
  7. related='vehicle_id.driver_employee_id', string='Driver (Employee)',
  8. readonly=True,
  9. )