mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 07:32:07 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright 2017 Camptocamp SA
|
||||
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com).
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class MaintenanceKind(models.Model):
|
||||
|
||||
_name = "maintenance.kind"
|
||||
_description = "Maintenance Kind"
|
||||
|
||||
name = fields.Char(required=True, translate=True)
|
||||
active = fields.Boolean("Active Kind", required=True, default=True)
|
||||
|
||||
_sql_constraints = [
|
||||
("name_uniq", "unique (name)", "Maintenance kind name already exists.")
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue