Skip to content
Extraits de code Groupes Projets
Valider 8235c6d7 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[FIX] error survey domain

parent 95b73223
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"Benjamin <benjamin@le-filament.com>", "Benjamin <benjamin@le-filament.com>",
], ],
"website": "https://le-filament.com", "website": "https://le-filament.com",
"category": "Training",
"data": [ "data": [
# security # security
"security/ir.model.access.csv", "security/ir.model.access.csv",
......
...@@ -12,7 +12,7 @@ class Training(models.Model): ...@@ -12,7 +12,7 @@ class Training(models.Model):
comodel_name="survey.survey", comodel_name="survey.survey",
string="Satisfaction", string="Satisfaction",
domain=[ domain=[
("survey_type", "=", "survey_type"), ("survey_type", "=", "training"),
("training_survey_type", "=", "satisfaction"), ("training_survey_type", "=", "satisfaction"),
], ],
ondelete="restrict", ondelete="restrict",
...@@ -31,7 +31,7 @@ class Training(models.Model): ...@@ -31,7 +31,7 @@ class Training(models.Model):
# ------------------------------------------------------ # ------------------------------------------------------
def action_valid(self): def action_valid(self):
if not self.satisfaction_survey_id: if not self.satisfaction_survey_id:
raise UserError(_("Le questionnaire de satisfaction doit être renseigné.")) raise UserError(_("Le questionnaire de satisfaction doit être configuré."))
super().action_valid() super().action_valid()
# ------------------------------------------------------ # ------------------------------------------------------
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter