diff --git a/__manifest__.py b/__manifest__.py index de6967d8708c097589df4e32a73943c1336eb586..33da7a8367abd7c339a241dabd2c17a3124d0a19 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -9,6 +9,7 @@ "Benjamin <benjamin@le-filament.com>", ], "website": "https://le-filament.com", + "category": "Training", "data": [ # security "security/ir.model.access.csv", diff --git a/models/training.py b/models/training.py index 8753ca80bf545c3bb71e2be05fc767d26e98ab08..ab4f3fa86bde34b39a76724e15ca053430fc60a6 100644 --- a/models/training.py +++ b/models/training.py @@ -12,7 +12,7 @@ class Training(models.Model): comodel_name="survey.survey", string="Satisfaction", domain=[ - ("survey_type", "=", "survey_type"), + ("survey_type", "=", "training"), ("training_survey_type", "=", "satisfaction"), ], ondelete="restrict", @@ -31,7 +31,7 @@ class Training(models.Model): # ------------------------------------------------------ def action_valid(self): 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() # ------------------------------------------------------