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.

31 lines
852 B

  1. # Copyright (C) 2018 - TODAY, Pavlov Media
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. # Main Agreement Section Records Model
  5. class AgreementStage(models.Model):
  6. _name = "agreement.stage"
  7. _description = "Agreement Stages"
  8. _order = "sequence"
  9. # General
  10. name = fields.Char(
  11. string="Stage Name",
  12. required=True)
  13. description = fields.Text(
  14. string="Description",
  15. required=False)
  16. sequence = fields.Integer(
  17. string="Sequence",
  18. default="1",
  19. required=False)
  20. fold = fields.Boolean(
  21. string="Is Folded",
  22. required=False,
  23. help="This stage is folded in the kanban view by default.",
  24. )
  25. stage_type = fields.Selection(
  26. [('agreement', 'Agreement')],
  27. string='Type', required=True)