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.

14 lines
537 B

  1. # -*- coding: utf-8 -*-
  2. from odoo import models, fields
  3. from .res_partner import SCALES
  4. class FfckStructureType(models.Model):
  5. _name = "ffck.structure.type"
  6. _description = "FFCK structure type"
  7. name = fields.Char("Name", required=True)
  8. short = fields.Char("Short", required=True, index=True)
  9. scale = fields.Selection(SCALES, string="Scale", required=True)
  10. active = fields.Boolean(string="Active", default=True)
  11. parent_id = fields.Many2one(comodel_name="ffck.structure.type", string="Parent")