Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 76a12459e94a5f47cd9e98b854ae16569529a299
  • 14.0 par défaut
  • 13.0
  • 12.0 protégée
4 résultats

post-migration.py

Blame
  • training_program.py 773 o
    # Copyright 2019-2022 Le Filament (<https://le-filament.com>)
    # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
    
    from odoo import fields, models
    
    
    class TrainingProgram(models.Model):
        _inherit = "training.program"
    
        registration_survey_id = fields.Many2one(
            comodel_name="survey.survey",
            string="Inscription/Positionnement",
            ondelete="restrict",
        )
        aeci_survey_id = fields.Many2one(
            comodel_name="survey.survey", string="AECI", ondelete="restrict"
        )
        aect_survey_id = fields.Many2one(
            comodel_name="survey.survey", string="AECT", ondelete="restrict"
        )
    
        # ------------------------------------------------------
        # Compute
        # ------------------------------------------------------