From 28b2995a413eddd3105a2a7605d3ea99ea3acddf Mon Sep 17 00:00:00 2001 From: tanghulu0608 <39181819@qq.com> Date: Sun, 29 Dec 2019 14:19:00 +0000 Subject: [PATCH] [FIX] doc: correct the doc string of the read_group The orderby specification is a string, not a list Using a list as a orderby clause produces an error in the construction of the group by query closes odoo/odoo#42451 Signed-off-by: Martin Trigaux (mat) --- odoo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/models.py b/odoo/models.py index d79f366defc..cb779c32c56 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -2104,7 +2104,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): date/datetime fields. :param int offset: optional number of records to skip :param int limit: optional max number of records to return - :param list orderby: optional ``order by`` specification, for + :param str orderby: optional ``order by`` specification, for overriding the natural sort ordering of the groups, see also :py:meth:`~osv.osv.osv.search` (supported only for many2one fields currently)