diff options
| author | root <yenthevg@gmail.com> | 2020-07-20 07:14:17 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-07-23 08:58:48 +0000 |
| commit | e3f68b9ba8a5362c7b60da737621afd53cde4edd (patch) | |
| tree | 97ed761e88b118168c289dadbf985cd6ded954d0 /odoo/models.py | |
| parent | c6d5948c757ccb2cdc51f54c1db81338e33c94f4 (diff) | |
[IMP] base: specify which order is invalid
Before this commit knowing which _order option was having issues may
be non-obvious.
This changes makes it a bit more obvious.
closes odoo/odoo#54703
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo/models.py')
| -rw-r--r-- | odoo/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
