diff --git a/odoo/models.py b/odoo/models.py index 76fb5c7f3bd..3944401694f 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -4148,7 +4148,10 @@ Record ids: %(records)s def _check_qorder(self, word): if not regex_order.match(word): - raise UserError(_('Invalid "order" specified. A valid "order" specification is a comma-separated list of valid field names (optionally followed by asc/desc for the direction)')) + raise UserError(_( + 'Invalid "order" specified (%s). A valid "order" specification is a comma-separated list of valid field names (optionally followed by asc/desc for the direction)', + word, + )) return True @api.model