You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
707 B
22 lines
707 B
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields
|
|
|
|
SCALES = [
|
|
("1", "National"),
|
|
("2", "Regional"),
|
|
("3", "Departmental"),
|
|
("4", "Local"),
|
|
("5", "Licensee"),
|
|
]
|
|
|
|
|
|
class FfckStructureType(models.Model):
|
|
_name = "ffck.structure.type"
|
|
_description = "FFCK structure type"
|
|
_order = "scale, short, name, id"
|
|
|
|
name = fields.Char("Name", required=True, translate=True)
|
|
short = fields.Char("Short", required=True, index=True)
|
|
scale = fields.Selection(selection=SCALES, string="Scale", required=True)
|
|
active = fields.Boolean(string="Active", default=True)
|
|
parent_id = fields.Many2one(comodel_name="ffck.structure.type", string="Parent")
|