diff options
| author | Benjamin Stiens <bst@odoo.com> | 2018-02-21 16:53:37 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-05-28 16:45:48 +0200 |
| commit | 6383120f3b67ea16d5f0d6cc47ea7b4dbd11e1f4 (patch) | |
| tree | 0059d5d14169ee0d598e44b456722acc447149d1 /addons/website_event_questions/models | |
| parent | c9735c75d61e6792ae32d64a35122dc4664f7cf4 (diff) | |
[IMP] all: Improve error messages
Many error messages are misleading or too "vague"
This task aims to improve all error message.
Task #47042
PR #23321
Diffstat (limited to 'addons/website_event_questions/models')
| -rw-r--r-- | addons/website_event_questions/models/event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event_questions/models/event.py b/addons/website_event_questions/models/event.py index e1b95dcee46..8bf6a0f2d86 100644 --- a/addons/website_event_questions/models/event.py +++ b/addons/website_event_questions/models/event.py @@ -75,7 +75,7 @@ class EventQuestion(models.Model): @api.constrains('event_type_id', 'event_id') def _constrains_event(self): if any(question.event_type_id and question.event_id for question in self): - raise UserError(_('Question should belong to either event category or event but not both')) + raise UserError(_('Question cannot belong to both the event category and itself.')) @api.model def create(self, vals): |
