- Created models for client applications, application specifications and application types. - Created a small technical module for adding a self-incrementing sequence field to other models. See incrementing_sequence_mixin.
20 lines
547 B
Python
20 lines
547 B
Python
from odoo import models, fields
|
|
|
|
|
|
class PartnerApplicationSpecification(models.Model):
|
|
_name = "partner.application.specification"
|
|
_description = "Partner Application Specification"
|
|
_inherit = ["mail.thread", "mail.activity.mixin", "incrementing.sequence.mixin"]
|
|
_sequence_group = "application_id"
|
|
|
|
name = fields.Char(
|
|
tracking=2,
|
|
required=True,
|
|
)
|
|
value = fields.Text(
|
|
tracking=2,
|
|
)
|
|
application_id = fields.Many2one(
|
|
comodel_name="partner.application",
|
|
tracking=1,
|
|
)
|