[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) <mat@odoo.com>
This commit is contained in:
tanghulu0608
2020-01-02 07:58:32 +00:00
committed by Martin Trigaux
parent 847b05fb19
commit 28b2995a41
+1 -1
View File
@@ -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)