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.

24 lines
895 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. class AgreementRecital(models.Model):
  5. _name = 'agreement.recital'
  6. _description = 'Agreement Recitals'
  7. _order = "sequence"
  8. name = fields.Char(string="Name", required=True)
  9. title = fields.Char(string="Title",
  10. help="The title is displayed on the PDF."
  11. "The name is not.")
  12. sequence = fields.Integer(string="Sequence", default=10)
  13. content = fields.Html(string="Content")
  14. agreement_id = fields.Many2one('agreement', string="Agreement",
  15. ondelete="cascade")
  16. active = fields.Boolean(
  17. string="Active",
  18. default=True,
  19. help="If unchecked, it will allow you to hide this recital without "
  20. "removing it.")