[FIX] developer: correct cr.execute
signature in ORM doc
`cr.execute` takes a single argument which is a list, a tuple, or a dict.
This commit is contained in:
parent
46c21826fc
commit
806761eec5
@ -517,7 +517,7 @@ cursor for the current database transaction and allows executing SQL directly,
|
|||||||
either for queries which are difficult to express using the ORM (e.g. complex
|
either for queries which are difficult to express using the ORM (e.g. complex
|
||||||
joins) or for performance reasons::
|
joins) or for performance reasons::
|
||||||
|
|
||||||
self.env.cr.execute("some_sql", param1, param2, param3)
|
self.env.cr.execute("some_sql", params)
|
||||||
|
|
||||||
Because models use the same cursor and the :class:`~odoo.api.Environment`
|
Because models use the same cursor and the :class:`~odoo.api.Environment`
|
||||||
holds various caches, these caches must be invalidated when *altering* the
|
holds various caches, these caches must be invalidated when *altering* the
|
||||||
|
Loading…
Reference in New Issue
Block a user