20 lines
541 B
Python
20 lines
541 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class FpMaintenanceLabel(models.Model):
|
|
"""Simple tag model for equipment labels."""
|
|
_name = 'fp.maintenance.label'
|
|
_description = 'Fusion Plating — Equipment Label'
|
|
_order = 'name'
|
|
|
|
name = fields.Char(string='Name', required=True)
|
|
color = fields.Integer(string='Colour')
|
|
|
|
_sql_constraints = [
|
|
('name_uniq', 'unique(name)', 'Label name must be unique.'),
|
|
]
|