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.

17 lines
507 B

  1. # Copyright 2017-2018 ACSONE SA/NV
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class ResPartnerCompanyType(models.Model):
  5. _name = "res.partner.company.type"
  6. _description = "Partner Company Type"
  7. name = fields.Char(string="Title", required=True, translate=True)
  8. shortcut = fields.Char(string="Abbreviation", translate=True)
  9. _sql_constraints = [
  10. ("name_uniq", "unique (name)", "Partner Company Type already exists!")
  11. ]