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.

18 lines
641 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 AgreementServiceProfile(models.Model):
  5. _name = 'agreement.serviceprofile'
  6. _description = 'Agreement Service Profiles'
  7. name = fields.Char(string="Name", required=True)
  8. agreement_id = fields.Many2one('agreement', string="Agreement",
  9. ondelete="cascade")
  10. active = fields.Boolean(
  11. string="Active",
  12. default=True,
  13. help="If unchecked, it will allow you to hide this service profile"
  14. " without removing it.")