fleet_vehicle_state.py 457 B

12345678910111213141516
  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 FleetVehicleState(models.Model):
  5. _name = 'fleet.vehicle.state'
  6. _order = 'sequence asc'
  7. _description = 'Vehicle Status'
  8. name = fields.Char(required=True, translate=True)
  9. sequence = fields.Integer()
  10. _sql_constraints = [('fleet_state_name_unique', 'unique(name)', 'State name already exists')]