bemade-addons/customer_applications/models/application_specification_key.py
Marc Durepos 87a1cb8860 Major changes for applications and equipment.
Add the notion of application specification keys to allow administrators
to specify the names of specification items that can be used on an
application. This aims to homogenize specifications and to later provide
a sort of checklist when creating a new application for a customer.

Added groups for partner applications (user and admin). Administrators
have the right to create specification keys while users can only read
them (and use them to create specifications on an application).

Various view improvements across the affected modules.
2024-10-17 15:28:07 -04:00

11 lines
360 B
Python

from odoo import models, fields, api
class ApplicationSpecificationKey(models.Model):
_name = "partner.application.specification.key"
_description = "Application Specification Key"
name = fields.Char(required=True, index="trigram")
_sql_constraints = [
("name_uniq", "unique (name)", "Specification key name must be unique."),
]